/* ChileHero - Premium Admin Login Stylesheet */

:root {
    --bg-dark: #06080c;
    --bg-form: #0b0d13;
    --text-white: #ffffff;
    --text-muted: #7e8f9f;
    --accent-blue: #0052cc;
    --accent-red: #e02424;
    --accent-gradient: linear-gradient(135deg, #0052cc 0%, #e02424 100%);
    --neon-blue-glow: 0 0 15px rgba(0, 82, 204, 0.4);
    --neon-red-glow: 0 0 15px rgba(224, 36, 36, 0.4);
}

@font-face {
    font-family: 'VCR';
    src: url('../fonts/VCR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Split-Screen Container */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Panel - Hero Artwork */
.login-visual {
    position: relative;
    width: 55%;
    background-image: url('../images/guitar_art.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 5rem;
    overflow: hidden;
    animation: zoomBg 25s ease-in-out infinite alternate;
}

@keyframes zoomBg {
    0% {
        background-size: 105%;
        background-position: center;
    }
    100% {
        background-size: 115%;
        background-position: center;
    }
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 8, 12, 0.1) 0%, rgba(6, 8, 12, 0.9) 100%),
                radial-gradient(circle at 20% 30%, rgba(0, 82, 204, 0.35) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(224, 36, 36, 0.35) 0%, transparent 60%);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    animation: fadeInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1;
    color: var(--text-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    font-family: 'Outfit', sans-serif;
}

.brand-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.brand-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(224, 36, 36, 0.6);
}

.brand-tagline {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd60a;
    font-family: 'VCR', Courier, monospace;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.divider-glow {
    width: 120px;
    height: 4px;
    background: var(--accent-gradient);
    margin-top: 1.5rem;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 82, 204, 0.8);
}

/* Right Panel - Form container */
.login-form-panel {
    width: 45%;
    background-color: var(--bg-form);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3.5rem;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.form-header h2 span {
    color: #e02424;
}

.form-header .subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Alert styles */
.alert-custom {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alert-error {
    background: rgba(224, 36, 36, 0.08);
    border-left: 4px solid var(--accent-red);
    color: #ff9999;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid #10b981;
    color: #a7f3d0;
}

.alert-icon {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.alert-text {
    flex-grow: 1;
}

/* Inputs */
.input-group-custom {
    position: relative;
    width: 100%;
}

.form-input-custom {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--text-white) !important;
    font-size: 1.05rem;
    padding: 0.75rem 0 0.5rem 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-label-custom {
    position: absolute;
    left: 0;
    top: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 8px rgba(0, 82, 204, 0.5);
}

/* Float logic */
.form-input-custom:focus ~ .form-label-custom,
.form-input-custom:not(:placeholder-shown) ~ .form-label-custom {
    top: -1.2rem;
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 600;
}

.form-input-custom:focus ~ .input-underline {
    width: 100%;
}

.form-input-custom:focus {
    border-bottom-color: transparent;
}

.is-invalid-custom {
    border-bottom-color: var(--accent-red) !important;
}

.is-invalid-custom ~ .form-label-custom {
    color: var(--accent-red) !important;
}

.is-invalid-custom ~ .input-underline {
    background: var(--accent-red) !important;
    box-shadow: 0 1px 8px rgba(224, 36, 36, 0.5) !important;
}

.error-text-custom {
    font-size: 0.8rem;
    color: var(--accent-red);
    margin-top: 0.4rem;
    animation: fadeIn 0.3s ease forwards;
}

/* Login Button */
.btn-login-custom {
    position: relative;
    width: 100%;
    background: var(--accent-gradient);
    border: none;
    outline: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-100%, -100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-login-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5),
                var(--neon-blue-glow),
                var(--neon-red-glow);
}

.btn-login-custom:hover .btn-glow {
    transform: translate(0, 0);
}

.btn-login-custom:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .brand-title {
        font-size: 3.5rem;
    }
    .login-visual {
        padding: 3.5rem;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    .login-visual {
        display: none; /* Hide visual artwork on mobile to keep focus on the login form */
    }
    .login-form-panel {
        width: 100%;
        min-height: 100vh;
        border-left: none;
        padding: 3rem 1.5rem;
    }
}
