* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Urbanist, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    background-color: #fff;
    color: #11181C;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.scroll-container {
    flex-grow: 1;
    display: flex;
}

.content-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 768px) {
    .content-container {
        flex-direction: row;
        min-height: 100vh;
    }
}

.illustration-container {
    display: none;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, #f0f2f5);
}

@media (min-width: 768px) {
    .illustration-container {
        display: flex;
    }
}

.space-content {
    width: 100%;
    max-width: 500px;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a237e;
    margin-left: 12px;
}

.illustration {
    width: auto;
    height: 450px;
    margin-bottom: 40px;
    object-fit: contain;
}

.feature-list {
    width: 100%;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
}

.feature-text {
    font-size: 16px;
    color: #1a237e;
    font-weight: 500;
}

.form-wrapper {
    flex: 1;
    justify-content: center;
    padding: 40px 20px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .form-wrapper {
        flex: 1;
        justify-content: center;
        padding: 40px;
        max-width: 550px;
    }
}

.form-background {
    flex: 1;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff, #ffffff);
}

.form-container {
    background-color: #ffffff;
    border-radius: 16px;
}

@media (min-width: 768px) {
    .form-container {
        box-shadow: 0 8px 16px rgba(17, 24, 39, 0.1);
        padding: 24px;
    }
}

.mobile-header {
    margin-bottom: 32px;
    display: none;
}

.desktop-header {
    margin-bottom: 32px;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: #11181C;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: #687076;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: #11181C;
    margin-bottom: 8px;
    display: block;
}

.input-container {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fff;
    padding: 0 16px;
    height: 56px;
}

.input-container:has(.input:-webkit-autofill) {
    background-color: #fff !important;
}

.input-error-state {
    border-color: #ef4444;
    background-color: #fee2e2;
}

.input {
    flex: 1;
    height: 100%;
    color: #11181C;
    font-size: 16px;
    font-weight: 500;
    border: none;
    outline: none;
    background: transparent;
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #11181C !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input:autofill {
    background-color: transparent !important;
    color: #11181C !important;
}

.input:-moz-autofill {
    background-color: transparent !important;
    color: #11181C !important;
}

.input-icon {
    margin-right: 12px;
    color: #687076;
}

.error-container {
    display: none; 
    align-items: center;
    margin-top: 8px;
    margin-left: 4px;
}

.error-text {
    color: #ef4444;
    font-size: 13px;
    margin-left: 4px;
}

.eye-icon {
    padding: 8px;
    cursor: pointer;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkbox-checked {
    background-color: #e6f2ff;
    border-color: #1a237e;
}

.checkbox svg {
    display: none !important;
}

.checkbox.checkbox-checked svg {
    display: block !important;
}

.remember-me-text {
    font-size: 14px;
    color: #11181C;
    font-weight: 500;
}

.forgot-password-text {
    font-size: 14px;
    color: #1a237e;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background-color: #1a237e;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(26, 35, 126, 0.2);
}

.submit-button:hover {
    background-color: #0d1b69;
}

.submit-button:disabled {
    background-color: #9fa6b2;
    cursor: not-allowed;
    opacity: 0.9;
}

.submit-button-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.divider-container {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.divider-text {
    padding: 0 12px;
    color: #687076;
    font-size: 13px;
    font-weight: 500;
}

.sso-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    cursor: pointer;
    width: 100%;
}

.sso-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    object-fit: contain;
}

.sso-button-text {
    color: #11181C;
    font-size: 15px;
    font-weight: 600;
}

.footer {
    margin-top: 24px;
    text-align: center;
    padding: 0 20px;
}

.footer-text {
    font-size: 12px;
    color: #687076;
    font-weight: 500;
}

.footer-link {
    margin-top: 8px;
    font-size: 13px;
    color: #687076;
    display: none;
}

@media (min-width: 768px) {
    .footer-link {
        display: block;
    }
}

.footer-link-text {
    color: #1a237e;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.form-error-container {
    display: none; 
    align-items: center;
    background-color: #fee2e2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ef4444;
}

.form-error-text {
    color: #b91c1c;
    font-size: 14px;
    margin-left: 8px;
    font-weight: 500;
}

.mobile-logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
    gap: 5px;
}

.mobile-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a237e;
}

.sso-section {
    margin-top: 20px;
    width: 100%;
}

.divider-container {
    display: flex;
    align-items: center;
    margin: 24px 0;
    width: 100%;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.divider-text {
    padding: 0 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.sso-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.sso-button:hover {
    background-color: #f9fafb;
}

.sso-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.sso-button-text {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.loading-state, .success-state {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background-color: #1a237e;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    margin-top: 20px;
    gap: 8px;
}

.success-state {
    background-color: #10b981;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Rate Limiting Styles */
.rate-limit-container {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1);
}

.rate-limit-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rate-limit-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.rate-limit-message {
    font-size: 13px;
    color: #92400e;
    line-height: 1.4;
    margin-bottom: 12px;
}

.rate-limit-container.blocked {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.rate-limit-container.blocked .rate-limit-title {
    color: #dc2626;
}

.rate-limit-container.blocked .rate-limit-message {
    color: #dc2626;
}

.rate-limit-container.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.rate-limit-container.warning .rate-limit-title {
    color: #92400e;
}

.rate-limit-container.warning .rate-limit-message {
    color: #92400e;
}

.rate-limit-container.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.rate-limit-container.info .rate-limit-title {
    color: #1e40af;
}

.rate-limit-container.info .rate-limit-message {
    color: #1e40af;
}

.form-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.form-disabled .input {
    background-color: #f9fafb;
    cursor: not-allowed;
}

.form-disabled .submit-button {
    background-color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
    .form-background{
        padding: 0;
    }
    .desktop-header{
        display: none;
    }
    .mobile-logo-text{
        font-size: 20px;
    }
    
    .rate-limit-container {
        margin: 0 16px 20px 16px;
    }
}