/* File: /_userconnection/styles/login.css */
:root {
    --back-color: #ffffff;
    --back-color-2: #ffffff;
    --text-color: #000000;
    --hover-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --multicolor:linear-gradient(45deg, #e9193e, #d67f10, #0dddb6, #0b0edc);
}

[data-theme="dark"] {
    --back-color: #18191a;
    --back-color-2: #232323;
    --text-color: #ffffff;
    --hover-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(255, 255, 255, 0.15);
    --multicolor:linear-gradient(45deg, #ff0066, #ffcc00, #00ffcc, #00ccff);
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--back-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color:var(--text-color);
}

.login-container {
    background: var(--back-color-2);
    padding: 2rem;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 1px solid var(--shadow-color);
    margin-bottom: auto;
    margin-top: 10%;
}

#joboLogo {  
    width: 100%;
    margin-right: auto;
    margin-bottom: 1rem;
  }

form {
    display: flex;
    flex-direction: column;
}

input {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--hover-color);
    border-radius: 4px;
    transition: border-color 0.3s;
}

#resetPasswordForm input:valid {
    background-color: rgb(155, 200, 99);
}


.submitLogin {  
    cursor: pointer;
    margin: 1rem;
    margin-top: auto; 
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
    padding: .5rem;
    background-color: rgba(66, 178, 212, 0.55);
    border-radius: .5rem;
    text-align: center;
    transition: background-color .1s;
    border: 1px solid var(--shadow-color);
    background-color: var(--back-color-2);
}

.submitLogin:hover {  
    color: #18191a;
    background-color: rgba(66, 178, 212, 0.8);
    background: var(--multicolor);
    background-size: 300% 300%;
    animation: holoGradientAnimation 5s ease infinite;
}

.error {
    color: rgb(209, 62, 62);    
    margin-bottom: 1rem;
}

.error-message {
    display: none; /* Hide by default */
    color: rgb(209, 62, 62);    
    margin-top: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.success-message {
    display: none; /* Hide by default */
    color: green;
    margin-top: 1rem;
}

.password-hint {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.forgot-password-container,
.reset-password-container {
    background: var(--back-color-2);
    padding: 2rem;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 1px solid var(--shadow-color);
    margin-bottom: auto;
    margin-top: 10%;
}

.greetingGroup{  
    display: flex;
    margin-bottom: 3rem;
}

#studioGreetingBonjour {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color);
}

#studioGreeting {  
    font-size: 22px;
    margin-left:1rem;
    font-weight: bold;
    background: var(--multicolor);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: holoGradientAnimation 5s ease infinite;
    display: inline-block;
}
.loadingIcon{
    width: 30px;
    height: 30px;
}

#forgotPasswordButton{  
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    border: 1px solid var(--shadow-color);
    background-color: var(--back-color-2);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-radius: .5rem;
    padding: .5rem;
}
#forgotPasswordButton:hover{
    background-color: var(--hover-color);
}  

.loading-icon-login{
    display: none;;
}
/* Animation for the gradient background */
@keyframes holoGradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
