* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 800px;
    border: 2px solid #274768;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.auth-header {
    background: #274768;
    color: white;
    padding: 24px 32px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 120px;
}

.auth-header-text {
    text-align: right;
}

.auth-header-text h1 {
    font-size: 24px;
    font-weight: normal;
    color: white;
    margin: 0;
}

.auth-header-text .subtitle {
    font-size: 12px;
    font-weight: normal;
    color: white;
    letter-spacing: 0.1em;
}

.auth-header-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-header-center h2 {
    font-size: 36px;
    font-weight: 500;
    color: white;
    margin: 0;
}

.auth-header-center .subtitle {
    font-size: 12px;
    color: white;
    opacity: 0.75;
    margin-top: 8px;
}

.auth-body {
    background: white;
    border-radius: 0;
    border: 0;
    margin-bottom: 0;
    padding: 24px;
}

.logo {
    display: block;
    margin: 0 auto 30px;
    height: 50px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.auth-body-title {
    text-align: center;
    margin-bottom: 24px;
}

.auth-body-title p {
    font-size: 18px;
    color: #274768;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #274768;
    font-weight: 500;
    font-size: 14px;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 4px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #8F8F8F;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #274768;
    box-shadow: 0 0 0 2px rgba(39, 71, 104, 0.1);
}

.form-group input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.form-group input.error {
    border-color: #ef4444;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #374151;
}

.password-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.totp-input input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-family: monospace;
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: #274768;
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 110px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: rgba(39, 71, 104, 0.9);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #8F8F8F;
    accent-color: #274768;
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    font-weight: 500;
    color: #274768;
    cursor: pointer;
    margin: 0;
}

.auth-footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
    gap: 16px;
}

/* When Request Access link is present (FUSION only), use space-between */
.auth-footer-links:has(.request-access-link) {
    justify-content: space-between;
}

.request-access-link a,
.forgot-password-link a {
    font-weight: 500;
    text-decoration: underline;
    color: #274768;
    font-size: 14px;
}

.request-access-link a:hover,
.forgot-password-link a:hover {
    color: rgba(39, 71, 104, 0.8);
}

/* Legacy support for old forgot-password class */
.forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.forgot-password a {
    font-weight: 500;
    text-decoration: underline;
    color: #274768;
    font-size: 14px;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.field-error {
    font-size: 14px;
    color: #dc2626;
    margin-top: 4px;
}

.instructions {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.number-match {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 24px;
    text-align: center;
}

.number-match .label {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 5px;
}

.number-match .number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #274768;
    font-family: monospace;
}

.alternative-methods {
    text-align: center;
    margin-top: 24px;
}

.alternative-methods a {
    color: #274768;
    text-decoration: none;
    font-size: 14px;
}

.alternative-methods a:hover {
    text-decoration: underline;
}

.help-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.help-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.help-links a:hover {
    color: #274768;
}

.login-form {
    margin-bottom: 16px;
}

.totp-input input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-family: monospace;
    padding: 12px;
}

.number-match {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 24px;
    text-align: center;
}

.number-match .label {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 5px;
}

.number-match .number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #274768;
    font-family: monospace;
}

.alternative-methods {
    text-align: center;
    margin-top: 24px;
}

.alternative-methods a {
    color: #274768;
    text-decoration: none;
    font-size: 14px;
}

.alternative-methods a:hover {
    text-decoration: underline;
}

