.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: right;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
}

.login-form-container {
    background-color: #ffffff;
    padding: 48px;
    border-radius: 12px;
    width: 100%;
    max-width: 474px;
    margin-right: 150px;
}

.logo-section {
    text-align: left;
    margin-bottom: 32px;
}

.logo-section img {
    max-height: 70px;
    width: auto;
}

.header-section {
    text-align: left;
    margin-bottom: 32px;
}

.header-section h2 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 8px;
}

.header-section p {
    font-size: 14px;
    color: #6b7280;
}

/* Django Messages Styles */
.messages {
    margin-bottom: 24px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.login-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

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

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

.input-group input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.password-field {
    position: relative;
}

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

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

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

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.login-button {
    width: 100%;
    padding: 12px 24px;
    background-color: #1f2937;
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 8px;
}

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

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

.login-button:focus {
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    position: absolute;
    bottom: -18px;
    left: 0;
}

.input-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-group input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.general-error-message {
    color: #ef4444;
    font-size: 12px;
    text-align: center;
    margin-top: 16px;
    padding: 8px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}


@media (max-width: 768px) {
    .login-page {
        justify-content: center;
        padding: 16px;
    }
    
    .login-form-container {
        margin-right: 0;
        padding: 32px;
        max-width: 100%;
        width: 100%;
        max-width: 450px;
    }
                                                                                                                         
    .logo-section {
        text-align: left;
        margin-bottom: 24px;
    }
                                                                                                                                 
    .logo-section img {
        max-height: 60px;
    }
    
    .header-section {
        text-align: left;
        margin-bottom: 24px;
    }
    
    .header-section h2 {
        font-size: 22px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    .input-group input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .password-field input {
        padding-right: 50px;
    }
    
    .login-button {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-page {
        justify-content: center;
        align-items: center;
        padding: 20px 16px;
        padding-top: 40px;
    }
    
    .login-form-container {
        margin-right: 0;
        padding: 24px;
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
    }
    
    .logo-section {
        text-align: left;
        margin-bottom: 20px;
    }
    
    .logo-section img {
        max-height: 50px;
    }
    
    .header-section {
        text-align: left;
        margin-bottom: 20px;
    }
    
    .header-section h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .header-section p {
        font-size: 13px;
    }
    
    .input-group {
        margin-bottom: 18px;
    }
    
    .input-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .input-group input {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    .password-field input {
        padding-right: 45px;
    }
    
    .password-toggle {
        right: 10px;
    }
    
    .password-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .login-button {
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 6px;
        margin-top: 6px;
    }
    
    .general-error-message {
        font-size: 11px;
        padding: 6px;
        margin-top: 12px;
    }
    
    .error-message {
        font-size: 11px;
        bottom: -16px;
    }
}