/* ============================================================
   CRÉDITOS GRUPO TAMOSHI - MODERN & ELEGANT LOGIN STYLES
   Venta y Alquiler de Motos y Motocars
   ============================================================ */

/* ---------- RESET & CORE VARIABLES ---------- */
:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Colors */
    --bg-dark: #07090e;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-hero: rgba(10, 16, 30, 0.85);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-input-focus: rgba(255, 255, 255, 0.09);
    
    --primary-blue: #2563eb;
    --primary-blue-hover: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-gold: #f59e0b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-card: rgba(255, 255, 255, 0.12);
    --border-input: rgba(255, 255, 255, 0.14);
    --border-input-focus: rgba(37, 99, 235, 0.6);
    
    --shadow-glow: 0 0 50px rgba(37, 99, 235, 0.25);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
        url('../img/bglogin.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* Base overlay for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(7, 9, 14, 0.75) 0%, rgba(7, 9, 14, 0.92) 100%);
    z-index: 0;
}

/* ---------- AMBIENT GLOW ANIMATIONS ---------- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    animation: floatGlow 12s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: rgba(37, 99, 235, 0.35);
}

.glow-2 {
    bottom: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.25);
    animation-delay: -4s;
}

.glow-3 {
    top: 40%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: rgba(245, 158, 11, 0.15);
    animation-delay: -8s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ---------- MAIN CONTAINER ---------- */
#section-login {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    display: flex;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-card);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    min-height: 580px;
}

/* ---------- HERO BRANDING PANEL (LEFT SIDE) ---------- */
.hero-panel {
    flex: 1.1;
    position: relative;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 50px;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #60a5fa;
    width: fit-content;
    margin-bottom: 24px;
}

.brand-badge i {
    font-size: 1.1em;
    color: #93c5fd;
}

.brand-title {
    font-size: 2.5em;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.brand-title .highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-description {
    font-size: 1.05em;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 440px;
    font-weight: 400;
}

/* Feature Pills in Hero Panel */
.feature-pills {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.pill-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.pill-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateX(6px);
}

.pill-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.2em;
    flex-shrink: 0;
}

.pill-text {
    display: flex;
    flex-direction: column;
}

.pill-text strong {
    color: #ffffff;
    font-size: 0.95em;
    font-weight: 600;
}

.pill-text span {
    color: var(--text-muted);
    font-size: 0.82em;
}

.hero-footer-text {
    font-size: 0.85em;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.hero-footer-text i {
    color: #10b981;
}

/* ---------- LOGIN CARD (RIGHT SIDE) ---------- */
.wrap-login {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.wrap-login.visible {
    opacity: 1;
    transform: translateY(0);
}

.wrap-form {
    width: 100%;
}

/* LOGO */
#logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-ring {
    position: relative;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(6, 182, 212, 0.2));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-ring:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

#logo img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 50%;
    background: #0f172a;
    display: block;
    padding: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* HEADER */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.title {
    font-size: 1.6em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.subtitle {
    font-size: 0.9em;
    color: var(--text-muted);
    font-weight: 400;
}

/* FORM & INPUTS */
.login-form {
    display: flex;
    flex-direction: column;
}

.input-group-custom {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 0.85em;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 12px 48px 12px 46px;
    font-size: 0.95em;
    font-family: var(--font-primary);
    color: #ffffff;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.form-control::placeholder {
    color: var(--text-dim);
    font-weight: 400;
}

.form-control:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1.1em;
    pointer-events: none;
    transition: color 0.25s ease;
}

.form-control:focus ~ .input-icon {
    color: var(--primary-blue-hover);
}

/* TOGGLE PASSWORD BUTTON */
.btn-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-toggle-password:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-toggle-password:focus {
    outline: none;
    color: var(--primary-blue-hover);
}

/* SUBMIT BUTTON */
.form-actions {
    margin-top: 10px;
}

.btn-login {
    width: 100%;
    height: 52px;
    padding: 0 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    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.25), transparent);
    transition: left 0.6s ease;
}

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

.btn-login:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-login i {
    font-size: 0.95em;
    transition: transform 0.25s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* FOOTER */
.wrap-foot {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.wrap-foot p {
    line-height: 1.6;
}

.version-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.78em;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.company-link {
    display: block;
    color: var(--text-muted);
    font-size: 0.82em;
}

.credits {
    display: block;
    font-size: 0.78em;
    color: var(--text-dim);
    margin-top: 4px;
}

.credits a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.credits a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media screen and (max-width: 991px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
        border-radius: 24px;
    }

    .hero-panel {
        display: none; /* Hide hero on smaller screens for clean focused card */
    }

    .wrap-login {
        padding: 40px 30px;
    }

    .brand-title {
        font-size: 2em;
    }
}

@media screen and (max-width: 480px) {
    #section-login {
        padding: 15px;
    }

    .wrap-login {
        padding: 32px 20px;
    }

    .title {
        font-size: 1.4em;
    }

    #logo img {
        width: 75px;
        height: 75px;
    }

    .form-control {
        height: 46px;
        font-size: 0.9em;
    }

    .btn-login {
        height: 48px;
        font-size: 0.95em;
    }
}
