
/* ====== Typography ====== */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}
h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    font-weight: 500;
    font-size: 1.75rem;
}

/* ====== Layout ====== */
.container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
}
.footer {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

/* ====== Composants ====== */
/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}
.logo {
    width: 180px;
    height: auto;
}

/* Messages */
.error-message {
    background-color: #fff2f2;
    color: #e53935;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border-left: 3px solid #e53935;
}
.success-message {
    background-color: #f0f9f0;
    color: #2e7d32;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border-left: 3px solid #2e7d32;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #FDA326;
    outline: none;
    box-shadow: 0 0 0 3px rgba(253, 163, 38, 0.15);
}
.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background-color: #FDA326; /* Ochre's orange from the website */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.btn-submit:hover {
    background-color: #e8911c;
}
.btn-submit:active {
    transform: translateY(1px);
}
.btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.btn-submit:disabled:hover {
    background-color: #cccccc;
}
.btn-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: #FDA326;
    text-decoration: none;
    font-weight: 500;
}
.btn-link:hover {
    text-decoration: underline;
}

/* SSO Divider & Button */
.sso-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}
.sso-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #eee;
    z-index: 0;
}
.sso-divider span {
    background-color: white;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    color: #777;
    font-size: 0.9rem;
}
.btn-sso {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.btn-sso:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}

/* Password reset */
.instruction-text {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}
.password-requirements {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}
.requirement {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
}
.requirement i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    color: #ccc;
}
.requirement-met {
    color: #2e7d32 !important;
}
.text-success {
    color: #2e7d32;
}
.password-match-success {
    color: #2e7d32;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}
.password-mismatch {
    color: #e53935;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}
.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}
.toggle-password:focus {
    outline: none;
}

/* MFA Setup */
.mfa-setup-container {
    max-width: 480px;
}
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}
#qrcode {
    margin-bottom: 1rem;
}
#qrcode img {
    display: block;
    margin: 0 auto;
}
.manual-entry {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}
.manual-entry p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}
.secret-code {
    font-family: monospace;
    background-color: #eee;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #333;
    word-break: break-all;
    text-align: center;
}

/* ====== Utils ====== */
.hidden {
    display: none;
}
