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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F2F0E8;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    margin-top: 128px;
}
.login-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Login container */
.login-container {
    min-width: 435px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
    z-index: 2;
    margin: 0 auto;
}

/* Login card */
.login-card {
    background: #617130;
    border-radius: 24px;
    padding: 48px 24px 12px 24px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

/* .login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
} */

/* Header styles */
.login-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    gap:8px;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 300;
    color: white;
    margin-bottom: 8px;
    font-style: italic;
    letter-spacing: 1px;
}

.logo-image {
    height: 60px;
    width: 167px;
    /* margin-bottom: 8px; */
    filter: brightness(0) invert(1);
}

.footer-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
    margin: 0 4px;
    filter: brightness(0) invert(1);
}

.subtitle {

    color: white;
    

    /* EN/Headline/H3 */
    font-family: Outfit;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px; /* 133.333% */

}

/* Form styles */
.login-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
    width: 385px;
    position: relative;
}

.form-label {
    display: inline-block;
    color: #617130;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    position: absolute;
    padding: 0 4px 0 16px;
    background-color: white;
    border-radius: 24px;
    left: 12px;
    top: -9px;
    z-index: 10;
}

.form-label::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #C7DB0A;
    border-radius: 50%;
}


.form-input {
    display: flex;
    min-width: 24px;
    min-height: 24px;
    padding: 12px 12px;
    align-items: center;
    align-self: stretch;
    width: 100%;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
    background: white;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #333;
}

.form-input:focus {
    outline: none;
    border-color: #617130;
}

.form-input::placeholder {
    color: #BDBDBD;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
}

/* Custom checkbox - updated to match New Account modal design */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: white;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #9a9a9a;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.2s ease;
}

.form-checkbox:hover {
    background: #F2F8B1;
}

.form-checkbox:checked {
    background: #D3E900;
    border-color: #A4B84C;
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(164, 184, 76, 0.1);
}

.checkbox-text {
    user-select: none;
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: white;
}

/* Forgot password link */
.forgot-password {
    color: #F2F8B1;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.forgot-password:hover {
    opacity: 1;
}

/* Login button */
.login-button {
    display: flex;
    padding: 12px 20px;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    background: #D3E900;
    box-shadow: 0 3px 8px 0 rgba(199, 219, 10, 0.30);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: Outfit;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    color: #333618;
    min-width:180px;
    height:48px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.login-button:hover {
    background: #9CAC00;
}


.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(164, 184, 76, 0.3);
}

.login-button:disabled {
    background: #F0F0F0;
    color: #A8A8A8;
}

/* Footer */
.footer {
    position: relative;
    text-align: center;
    font-size: 14px;
    width: 100%;
    height: 300px;
    z-index: 1;
}

.footer p{
    color: #617130;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin-bottom: 100px;
}

.footer-image{
    position: absolute;
    bottom: 0;
    left: 200px;
    /* right:0; */
    /* object-fit: cover; */
    z-index: 1;
    width:100%;
    height:300px;
}

/* Error message styling to match UI */
.error-message {
    display: flex;
    padding: 12px 16px;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    border-radius: 4px;
    background: #FDEDED;
    margin-bottom: 20px;
    font-size: 14px;
    color: #5F2120;
    position: relative;
    width: 385px;
    box-sizing: border-box;
}

.error-icon {
    width: 19.5px;
    height: 19.5px;
    flex-shrink: 0;
}

.error-text {
    flex: 1;
    line-height: 1.4;
}

.error-close {
    display: flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.error-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.close-icon {
    width: 100%;
    height: 100%;
}

/* Field error styling */
.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    line-height: 1.3;
}

.field-error .required-indicator {
    color: #dc3545;
    margin-right: 4px;
}

/* Input error state */
.form-input.error {
    border: 1px solid #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Required indicator */
.required-indicator {
    color: #dc3545;
    margin-right: 4px;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
        gap: 25px;
    }
    
    .login-card {
        padding: 35px 25px 30px 25px;
        border-radius: 16px;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
    
    .logo {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-input {
        padding: 15px 18px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .form-options {
        margin-bottom: 28px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .login-button {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
        margin-top: 6px;
    }
}

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

.login-button.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

.login-button.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Focus styles for accessibility */
.form-input:focus,
.login-button:focus,
.checkbox-container:focus-within,
.forgot-password:focus {
    outline: 2px solid #A4B84C;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid #333;
    }
    
    .form-input {
        border: 1px solid #333;
    }
    
    .login-button {
        border: 2px solid #2D3A1A;
    }
}
