/* ============================================
   LOGIN PAGE - Industrial Luxury Design
   ============================================ */

/* Google Fonts - Elegant & Bold Typography */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;600;700&display=swap');

/* Reset and Base Styles */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Hero Background Container */
.login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Image with Overlay */
.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            rgba(20, 20, 30, 0.92) 0%,
            rgba(15, 15, 25, 0.88) 40%,
            rgba(25, 25, 35, 0.85) 100%),
        url('../images/todo_llantas_hero_v3.png') center/cover no-repeat fixed;
    z-index: 1;
}

/* Animated Gradient Overlay */
.login-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(19, 78, 166, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(13, 58, 122, 0.06) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Decorative Particles */
.login-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(19, 78, 166, 0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 4.5s; }
.particle:nth-child(10) { left: 95%; animation-delay: 0.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Diagonal Accent Lines */
.login-accent-line {
    position: absolute;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(19, 78, 166, 0.15) 50%,
        transparent 100%);
    height: 2px;
    width: 200%;
    z-index: 2;
}

.login-accent-line.top {
    top: 20%;
    left: -50%;
    transform: rotate(-15deg);
    animation: slideInLine 3s ease-out forwards;
}

.login-accent-line.bottom {
    bottom: 30%;
    right: -50%;
    transform: rotate(15deg);
    animation: slideInLine 3s ease-out 0.5s forwards;
}

@keyframes slideInLine {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(-15deg);
    }
}

/* Main Login Container */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Card with Glassmorphism */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Decorative Corner Accent */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(19, 78, 166, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Logo Section */
.login-logo {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.login-logo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #134ea6 0%, #0d3a7a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(19, 78, 166, 0.3),
        0 0 0 8px rgba(19, 78, 166, 0.1);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.login-logo-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.login-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    letter-spacing: 3px;
    color: #fff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 300;
}

/* Welcome Message */
.login-welcome {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.login-welcome h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.login-welcome p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 300;
}

/* Alert Messages */
.login-alert {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: #fff;
    font-size: 14px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Bootstrap Alerts in Login Context */
.login-card .alert {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: #fff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    animation: fadeIn 0.5s ease-out;
    position: relative;
}

.login-card .alert .close {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: none;
    opacity: 0.8;
    font-size: 24px;
    line-height: 18px;
    padding: 0 5px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.login-card .alert .close:hover {
    color: #fff;
    opacity: 1;
}

/* Alert Types - Color Variations */
.login-card .alert-danger {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.3);
}

.login-card .alert-success {
    background: rgba(163, 200, 109, 0.15);
    border-color: rgba(163, 200, 109, 0.3);
}

.login-card .alert-warning {
    background: rgba(253, 215, 97, 0.15);
    border-color: rgba(253, 215, 97, 0.3);
}

.login-card .alert-info {
    background: rgba(122, 203, 238, 0.15);
    border-color: rgba(122, 203, 238, 0.3);
}

/* Form Styles */
.login-form {
    animation: fadeIn 1s ease-out 0.7s backwards;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(19, 78, 166, 0.6);
    box-shadow: 0 0 0 4px rgba(19, 78, 166, 0.1);
}

/* Input Icon */
.form-group-icon {
    position: relative;
}

.form-group-icon input {
    padding-left: 50px;
}

.form-group-icon .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.form-group-icon input:focus + .input-icon,
.form-group-icon input:focus ~ .input-icon {
    color: rgba(19, 78, 166, 0.8);
}

/* Submit Button */
.login-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #134ea6 0%, #0d3a7a 100%);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 10px 25px rgba(19, 78, 166, 0.3),
        0 0 0 0 rgba(19, 78, 166, 0.4);
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.login-btn::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;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 35px rgba(19, 78, 166, 0.4),
        0 0 0 0 rgba(19, 78, 166, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow:
        0 5px 15px rgba(19, 78, 166, 0.3);
}

/* Footer Section */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 0.9s backwards;
}

.login-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.login-footer a {
    color: rgba(19, 78, 166, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: rgba(19, 78, 166, 1);
    text-decoration: underline;
}

/* Decorative Branding */
.login-brand {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    animation: fadeIn 1s ease-out 1.2s backwards;
}

.login-brand-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.login-brand-year {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 36px;
    }

    .login-welcome h1 {
        font-size: 24px;
    }

    .login-logo-icon {
        width: 60px;
        height: 60px;
    }

    .login-logo-icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    .login-card {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 32px;
    }

    .login-subtitle {
        font-size: 12px;
    }

    .login-welcome h1 {
        font-size: 22px;
    }

    .form-group input {
        padding: 14px 18px;
    }

    .login-btn {
        padding: 16px 25px;
        font-size: 15px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-bg {
        background-size: cover;
    }
}
