/* Glassmorphism Login - Light Theme */

:root {
    --accent-primary: #000000;
    --accent-secondary: #1a1a1a;
    --accent-gradient: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
}

.login-glass-container {
    min-height: 100vh;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* Gradiente radial sutil */
.login-glass-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Textura de ruido sutil */
.login-glass-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.15);
}

.login-form-wrapper {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.login-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.98);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.login-title {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: rgba(0, 0, 0, 0.65);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.glass-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.glass-input {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 14px 18px 14px 48px;
    color: #1a1a1a;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.glass-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

.glass-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    font-size: 1.1rem;
    z-index: 1;
    transition: color 0.3s ease;
}

.glass-input:focus + .glass-input-icon,
.glass-input:focus ~ .glass-input-icon {
    color: var(--accent-primary);
}

.glass-btn-social {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    color: #1a1a1a;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.glass-btn-social:hover {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    color: #1a1a1a;
    text-decoration: none;
    border-color: rgba(0, 0, 0, 0.2);
}

.glass-btn-facebook:hover { 
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.glass-btn-twitter:hover { 
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
    color: #000000;
}

.glass-btn-google:hover { 
    background: rgba(234, 67, 53, 0.1);
    border-color: rgba(234, 67, 53, 0.3);
    color: #ea4335;
}

.glass-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
}

.glass-divider::before,
.glass-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.glass-divider span {
    padding: 0 1rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-btn-primary {
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    padding: 13px 28px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.glass-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    color: #ffffff;
}

.glass-btn-primary:active {
    transform: scale(0.98);
}

.glass-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
}

.glass-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #000000;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.glass-checkbox label {
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: nowrap;
    user-select: none;
    position: relative;
    z-index: 1;
}

.glass-link {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.glass-link:focus {
    outline: none;
}

.glass-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.glass-link:hover::after {
    width: 100%;
}

.glass-link:hover {
    color: #000000;
    text-decoration: none;
}

.forgot-password-link {
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Side Stats Container */
.side-stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.stats-content {
    width: 100%;
    max-width: 480px;
    position: relative;
    min-height: 420px;
}

.stats-card,
.testimonial-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.stats-card.active,
.testimonial-card.active {
    opacity: 1;
    pointer-events: auto;
}

/* Stats Card */
.stats-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 3rem 2rem;
    text-align: center;
}

.stat-item {
    margin-bottom: 2.5rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Testimonial Card */
.testimonial-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 3rem 2.5rem;
    text-align: center;
}

.testimonial-stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(255,193,7,0.3);
}

.testimonial-text {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.testimonial-author {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.side-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.side-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)) brightness(0.95) contrast(1.05);
}

.alert-glass {
    background: rgba(220, 53, 69, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    color: #dc3545;
    padding: 12px 16px;
    margin-bottom: 1rem;
}

.alert-glass.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.glass-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: color 0.3s ease;
}

.glass-password-toggle:hover {
    color: rgba(0, 0, 0, 0.7);
}

.glass-footer {
    background: #f5f5f5;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem 1rem;
    text-align: center;
}

.glass-footer .text-muted {
    color: rgba(0, 0, 0, 0.6) !important;
}

.glass-footer .link-footer,
.glass-footer .footer-tiny {
    color: rgba(0, 0, 0, 0.7) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.glass-footer .link-footer:hover,
.glass-footer .footer-tiny:hover {
    color: #000000 !important;
    text-decoration: none;
}

.glass-footer .card {
    background: transparent !important;
}

.glass-footer .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.glass-footer .dropdown-item {
    color: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.glass-footer .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

.glass-footer .dropdown-item.active {
    background: rgba(0, 0, 0, 0.1);
    color: #000000 !important;
}

@media (max-width: 991px) {
    .glass-card {
        margin: 1rem auto;
        max-width: 500px;
    }
    .login-form-wrapper {
        max-width: 100%;
    }
    .login-logo {
        max-width: 130px;
    }
    .login-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .glass-card {
        border-radius: 20px;
        margin: 0.75rem;
    }
    .glass-input {
        padding: 11px 16px 11px 44px;
        font-size: 0.9rem;
    }
    .glass-btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    .login-logo {
        max-width: 110px;
    }
    .login-title {
        font-size: 1.35rem;
    }
    .card-body {
        padding: 1.5rem !important;
    }
    .glass-checkbox label {
        font-size: 0.8rem;
        white-space: normal;
    }
    .glass-checkbox input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }
    .forgot-password-link {
        font-size: 0.8rem;
    }
    .login-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
}
