﻿
/* Modern Login Card Styles */
.modern-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .modern-login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    }

/* Header Styles */
.login-icon {
    background: var(--bg-gradient);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.login-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Modern Form Styles */
.modern-form {
    position: relative;
}

.modern-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.modern-input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: rgba(248, 250, 252, 0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

    .modern-input:focus {
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        outline: none;
    }

    .modern-input::placeholder {
        color: #9ca3af;
        font-size: 0.95rem;
    }

.input-focus-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: var(--bg-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.modern-input:focus + .input-focus-effect {
    opacity: 0.1;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: var(--primary-color);
    }

/* Modern Checkbox */
.modern-checkbox {
    position: relative;
}

    .modern-checkbox .form-check-input {
        border-radius: 6px;
        border: 2px solid #d1d5db;
        width: 1.2rem;
        height: 1.2rem;
        transition: all 0.3s ease;
    }

        .modern-checkbox .form-check-input:checked {
            background: var(--bg-gradient);
            border-color: var(--primary-color);
        }

    .modern-checkbox .form-check-label {
        font-weight: 500;
        color: #374151;
        cursor: pointer;
        margin-left: 0.5rem;
    }

/* Modern Buttons */
.modern-btn-primary {
    background: var(--bg-gradient);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

    .modern-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        color: white;
    }

    .modern-btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .modern-btn-primary:hover::before {
        left: 100%;
    }

.modern-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .modern-btn-outline:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

/* Links */
.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .forgot-password-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e5e7eb;
    }

.divider-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Validation Messages */
.validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.modern-alert {
    border-radius: 12px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

/* Loading State */
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 576px) {
    .modern-login-card {
        margin: 1rem;
        border-radius: 16px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .modern-input {
        padding: 0.75rem;
    }
}

/* Animation Enhancement */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
