/* Modern Login Page Styles */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient-accent, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    padding: 40px 40px 30px;
    text-align: center;
    background: var(--bg-gradient-primary, linear-gradient(135deg, #C53A3C 0%, #8B2E2F 100%));
    color: white;
}

.logo-container {
    margin-bottom: 20px;
}

.login-logo {
    max-width: 120px;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: white;
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.login-body {
    padding: 40px;
}

.login-form {
    margin-top: 20px;
}

.validation-summary {
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #fee;
    border-left: 4px solid #dc3545;
    margin-bottom: 20px;
    font-size: 14px;
}

.validation-summary:empty {
    display: none;
}

.form-floating {
    position: relative;
}

.modern-input {
    border: 2px solid var(--border-light, #e0e0e0);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    height: 56px;
}

.modern-input:focus {
    border-color: var(--brand-primary, #C53A3C);
    box-shadow: 0 0 0 0.2rem rgba(197, 58, 60, 0.15);
}

.form-floating > label {
    padding: 1rem 1rem;
    color: var(--neutral-medium, #6c757d);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--brand-primary, #C53A3C);
}

.btn-login {
    background: var(--bg-gradient-primary, linear-gradient(135deg, #C53A3C 0%, #8B2E2F 100%));
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::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 ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 58, 60, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

.login-footer {
    padding: 20px 40px 30px;
    text-align: center;
    background-color: var(--neutral-lightest, #f8f9fa);
    border-top: 1px solid var(--border-medium, #e9ecef);
}

.register-link {
    margin: 0;
    font-size: 14px;
    color: var(--neutral-medium, #6c757d);
}

.register-link span {
    margin-right: 8px;
}

.register-link a {
    color: var(--brand-primary, #C53A3C);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: var(--brand-primary-dark, #8B2E2F);
    text-decoration: underline;
}

/* Decorative elements */
.login-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive design */
@media (max-width: 576px) {
    .login-header {
        padding: 30px 20px 20px;
    }

    .login-body {
        padding: 30px 20px;
    }

    .login-footer {
        padding: 15px 20px 20px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-logo {
        max-width: 100px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: #1e1e1e;
        color: #e0e0e0;
    }

    .modern-input {
        background-color: #2a2a2a;
        border-color: #404040;
        color: #e0e0e0;
    }

    .form-floating > label {
        color: #9a9a9a;
    }

    .login-footer {
        background-color: #252525;
        border-top-color: #404040;
    }
}
