body {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07),
                0 10px 20px rgba(0, 0, 0, 0.1),
                0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid #f0f0f0;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: auto;
    height: 60px;
    margin-bottom: 16px;
}

.login-form,
.stacked-small {
    display: flex;
    flex-direction: column;
}

.login-form {
    gap: 20px;
}

.stacked-small {
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #131D61;
    box-shadow: 0 0 0 3px rgba(19, 29, 97, 0.1);
}

.login-btn {
    background: #131D61;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.login-btn:hover {
    background: #0f1849;
}

.login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    background: #ffebee;
    color: #CC3300;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
    margin-bottom: 8px;
}

.error-message.visible {
    display: block;
}

.info-message {
    background: #e3f2fd;
    color: #1565c0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
    margin-bottom: 8px;
}

.info-message.visible {
    display: block;
}

.sso-section {
    display: none;
    margin-bottom: 24px;
}

.sso-section.visible {
    display: block;
}

.sso-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    margin-bottom: 12px;
}

.sso-btn:hover {
    border-color: #131D61;
    background: #f9f9f9;
}

.sso-btn svg {
    width: 20px;
    height: 20px;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 16px;
    position: relative;
    color: #666;
    font-size: 13px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.login-footer a {
    color: #131D61;
    text-decoration: none;
    font-size: 13px;
}

.login-footer a:hover {
    text-decoration: underline;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-btn.loading .loading-spinner {
    display: inline-block;
}

.login-btn.loading .btn-text {
    margin-right: 8px;
}

.hidden-section {
    display: none;
}

.mfa-instructions,
.reset-copy {
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
}

.mfa-instructions {
    text-align: center;
}

.no-margin {
    margin: 0;
}

.mfa-code-group {
    margin: 0;
    text-align: center;
}

.mfa-code-input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 6px;
    width: 200px;
}

.mfa-alt-link,
.back-link {
    text-align: center;
    font-size: 13px;
    text-decoration: none;
}

.mfa-alt-link {
    color: #666;
}

.back-link {
    color: #131D61;
}

.forgot-password-panel {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.reset-email-input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.reset-submit {
    margin-top: 0;
    font-size: 14px;
    padding: 12px;
}
