/* =========================================================
   EC Grown – Auth Pages Theme Override
   Login & Register pages — Gold/Maroon/Navy brand colors
   ========================================================= */

/* ── CSS Variables override ─────────────────────────────── */
:root {
    --bd-gradient-1: linear-gradient(90deg, #9B1C1C 0%, #D4A200 50%, #9B1C1C 100%);
    --bd-gradient-2: linear-gradient(90deg, #9B1C1C 0%, #D4A200 100%);
    --bd-gradient-3: linear-gradient(135deg, #9B1C1C 0%, #D4A200 100%);
    --bd-theme-primary: #D4A200;
    --bd-heading-primary: #ffffff;
    --bd-text-body: #9999bb;
    --bd-bg-1: #0A0A1A;
    --bd-bg-2: #0D0B1E;
    --bd-border-primary: rgba(212, 162, 0, 0.15);
}

/* ── Full page background ───────────────────────────────── */
html, body {
    background: #0A0A1A !important;
    color: #b0b8c8;
    font-family: "IBM Plex Sans", sans-serif;
}

/* ── Video background overlay ───────────────────────────── */
.background-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.12;
    filter: hue-rotate(200deg) saturate(0.4);
}

/* Dark overlay on top of video */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,26,0.95) 0%, rgba(13,11,30,0.92) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ── Glow orbs (recolored to gold/red) ──────────────────── */
.glow__area { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.body__color-glow {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,162,0,0.08) 0%, transparent 70%);
    top: -150px; left: -150px;
    animation: glowPulse 6s ease-in-out infinite alternate;
}
.body__color-glow.glow-2 {
    background: radial-gradient(circle, rgba(155,28,28,0.07) 0%, transparent 70%);
    top: auto; left: auto;
    bottom: -150px; right: -150px;
    animation-delay: 3s;
}
@keyframes glowPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}

/* ── Main section layout ────────────────────────────────── */
main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    position: relative;
    z-index: 1;
}

.login__area,
.register__area {
    width: 100%;
    padding: 0;
}

.login__area .container,
.register__area .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Auth card (wrapper) ────────────────────────────────── */
.login__wrapper {
    width: 100%;
    max-width: 480px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(212, 162, 0, 0.18) !important;
    border-radius: 20px !important;
    padding: 44px 40px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212,162,0,0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Gold top border accent */
.login__wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9B1C1C, #D4A200, #9B1C1C);
    background-size: 200% auto;
    animation: borderShimmer 3s linear infinite;
}
@keyframes borderShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ── Logo ───────────────────────────────────────────────── */
img.wdth2564 {
    width: 160px !important;
    margin-bottom: 24px !important;
    filter: drop-shadow(0 0 12px rgba(212,162,0,0.3));
}

/* ── Login intro text ───────────────────────────────────── */
.login__intro {
    margin-bottom: 28px !important;
}
.login__title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.3px;
}
.login__intro p {
    color: #8888aa !important;
    font-size: 14px !important;
    margin: 0;
}

/* ── Input fields ───────────────────────────────────────── */
.login__input {
    position: relative;
    margin-bottom: 16px !important;
}
.login__input input,
.login__input select {
    width: 100% !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 162, 0, 0.2) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    padding: 0 18px !important;
    transition: all 0.3s !important;
    outline: none !important;
}
.login__input input::placeholder {
    color: #666688 !important;
}
.login__input input:focus,
.login__input select:focus {
    border-color: #D4A200 !important;
    background: rgba(212, 162, 0, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(212, 162, 0, 0.12) !important;
    background-image: none !important;
}

/* Contact select dropdown */
.contact__select select {
    width: 100% !important;
    height: 50px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(212,162,0,0.2) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    padding: 0 18px !important;
    appearance: auto !important;
}
.contact__select select option {
    background: #0D0B1E !important;
    color: #ffffff !important;
}

/* ── Remember me / Forgot row ───────────────────────────── */
.login__option {
    margin-bottom: 20px !important;
}
.login__remember {
    display: flex;
    align-items: center;
    gap: 8px;
}
.login__remember input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #D4A200;
    cursor: pointer;
}
.login__remember label {
    color: #8888aa;
    font-size: 13px;
    cursor: pointer;
    margin: 0;
}
.login__forgot a {
    color: #D4A200 !important;
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}
.login__forgot a:hover {
    color: #F5C518 !important;
    text-decoration: underline;
}

/* ── Submit Button ──────────────────────────────────────── */
.login__submit {
    margin-bottom: 20px !important;
}
.bd-gradient-btn {
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(90deg, #9B1C1C 0%, #D4A200 100%) !important;
    background-size: 100% !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.35s ease !important;
    position: relative;
    overflow: hidden;
}
.bd-gradient-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #D4A200 0%, #9B1C1C 100%);
    opacity: 0;
    transition: opacity 0.35s;
}
.bd-gradient-btn:hover::before { opacity: 1; }
.bd-gradient-btn:hover {
    box-shadow: 0 6px 24px rgba(212,162,0,0.4) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}
.bd-gradient-btn span, .bd-gradient-btn * { position: relative; z-index: 1; }

/* ── Bottom link (Don't have an account?) ───────────────── */
.log__not-account p {
    color: #8888aa !important;
    font-size: 14px !important;
    margin: 0;
}
.log__not-account p a {
    color: #D4A200 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-left: 4px;
    transition: color 0.3s;
}
.log__not-account p a:hover {
    color: #F5C518 !important;
    text-decoration: underline !important;
}

/* ── Divider ────────────────────────────────────────────── */
.login__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #555566;
    font-size: 13px;
}
.login__divider::before,
.login__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(212,162,0,0.15);
}

/* ── Section-space helper ───────────────────────────────── */
.section-space { padding: 0 !important; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 520px) {
    .login__wrapper {
        padding: 32px 22px !important;
        border-radius: 14px !important;
    }
    .login__title { font-size: 22px !important; }
    img.wdth2564 { width: 130px !important; }
}
