﻿.login-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.login-title {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 700;
}

.login-subtitle {
    margin: 0;
    opacity: 0.95;
    font-size: 1em;
}

/* Form */
.login-form {
    padding: 35px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-label i {
    color: #667eea;
    margin-right: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Remember Me Section */
.remember-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.remember-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox-label {
    color: #495057;
    font-size: 0.95em;
    cursor: pointer;
}

.forgot-link {
    color: #667eea;
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Errors */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin: 20px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    font-size: 1.2em;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 6px;
    font-weight: 500;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.footer-text {
    color: #6c757d;
    font-size: 0.95em;
    margin-right: 8px;
}

.register-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.register-link:hover {
    color: #764ba2;
    text-decoration: none;
    transform: translateX(2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-container {
        margin: 20px auto;
        padding: 15px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .header-icon {
        font-size: 3em;
    }

    .login-title {
        font-size: 1.6em;
    }

    .login-subtitle {
        font-size: 0.9em;
    }

    .login-form {
        padding: 25px 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .btn-login {
        padding: 12px 20px;
        font-size: 1em;
    }

    .remember-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        padding: 0;
    }

    .login-card {
        border-radius: 12px;
    }

    .login-header {
        padding: 25px 15px;
    }

    .login-form {
        padding: 20px 15px;
    }
}
