/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo {
    height: 32px;
    object-fit: contain;
}


/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Login card */
.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    text-align: left;
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
    text-align: left;
    line-height: 1.5;
}

/* Form styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    color: #000;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Password container */
.password-container {
    position: relative;
}

.password-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #374151;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Continue and Sign in buttons */
.continue-button,
.signin-button {
    width: 100%;
    background-color: #1f2937;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 8px;
}

.continue-button:hover,
.signin-button:hover {
    background-color: #111827;
    transform: translateY(-1px);
}

.continue-button:active,
.signin-button:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 16px;
    height: 16px;
}

/* Forgot password link */
.forgot-password-link {
    text-align: center;
    margin-top: 24px;
}

.forgot-password-text {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.forgot-password-text:hover {
    color: #b91c1c;
}

/* Login steps */
.login-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.login-step.hidden {
    display: none;
}

.step-header {
    position: relative;
    margin-bottom: 32px;
}

.step-header:has(.back-button) {
    padding-left: 40px;
}

.step-header:has(.back-button) .login-subtitle {
    margin-left: -40px;
    margin-top: 8px;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: color 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.back-icon {
    width: 20px;
    height: 20px;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-body {
    padding: 20px 24px;
}

.modal-description,
.modal-instruction {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.modal-instruction {
    font-weight: 500;
    margin-bottom: 0;
}

.modal-footer {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-cancel,
.modal-continue {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-cancel {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-cancel:hover {
    background-color: #e5e7eb;
}

.modal-continue {
    background-color: #1f2937;
    color: #ffffff;
}

.modal-continue:hover {
    background-color: #111827;
}

/* SSO section */
.sso-section {
    padding: 30px 0;
    margin-top: 20px;
}

.sso-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    opacity: .64;
}

.sso-button {
    width: 100%;
    background-color: #ffffff;
    color: #000;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sso-button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.sso-button:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .login-card,
    .sso-section {
        padding: 24px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
}

/* Focus styles for accessibility */
.form-input:focus,
.continue-button:focus,
.signin-button:focus,
.password-toggle:focus,
.back-button:focus,
.sso-button:focus,
.modal-cancel:focus,
.modal-continue:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state */
.continue-button:disabled,
.signin-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.continue-button:disabled:hover,
.signin-button:disabled:hover {
    background-color: #9ca3af;
    transform: none;
}

.help-block {
    background: rgba(0, 0, 0, 0) !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: auto !important;
    /* padding-top: 10px; */
    color: #d91801 !important;
    font-size: 14px;
}
.has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label , .has-error .form-label{
    color: #d91801;
}