/* ==========================================================================
   Encore TV - Modern Premium Streaming Login Theme
   ========================================================================== */
:root {
    --primary: #E50914;
    --primary-hover: #f40612;
    --primary-glow: rgba(229, 9, 20, 0.4);
    --bg-dark: #07090e;
    --card-bg: rgba(16, 21, 33, 0.88);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font);
    background-color: var(--bg-dark);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Atmosphere */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 50% 10%, rgba(229, 9, 20, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 41, 59, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(15, 23, 42, 0.5) 0%, transparent 50%),
        #07090e;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}

.grid {
    display: none !important;
}

/* Page Layout */
.page {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.stage {
    position: relative;
    width: 100%;
    max-width: 430px;
}

/* Card Panel */
.login-panel {
    position: relative;
    width: 100%;
    background: var(--card-bg) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--card-border) !important;
    border-radius: 20px !important;
    padding: 44px 36px 32px !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(229, 9, 20, 0.1) !important;
    clip-path: none !important;
}

.panel-frame,
.panel-glow {
    display: none !important;
}

/* Logo & Title */
.panel-logo {
    text-align: center;
    margin-bottom: 32px;
}

.panel-logo-main {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.panel-logo-main::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.panel-title {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

/* Alert */
.panel-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fca5a5;
    font-size: 13.5px;
}

.panel-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Form Groups & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper::before,
.input-wrapper::after {
    display: none !important;
}

.input-wrapper input {
    width: 100% !important;
    height: 52px !important;
    padding: 0 46px 0 48px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: 12px !important;
    font-family: var(--font) !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    outline: none !important;
    clip-path: none !important;
    transition: all 0.2s ease !important;
}

.input-wrapper input::placeholder {
    color: #64748b !important;
    font-weight: 400 !important;
}

.input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2) !important;
}

/* Input Icons */
.input-icon {
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 2 !important;
    transition: color 0.2s ease !important;
}

.input-icon::after {
    display: none !important;
}

.input-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary) !important;
}

/* Password Toggle */
.show-password {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
    transition: color 0.2s ease !important;
}

.show-password:hover {
    color: #ffffff !important;
}

.show-password svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.show-password .eye-off {
    display: none !important;
}

.show-password.revealed .eye-on {
    display: none !important;
}

.show-password.revealed .eye-off {
    display: block !important;
}

/* ReCaptcha */
.recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

/* Button */
.login-button {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 52px !important;
    margin-top: 24px !important;
    background: linear-gradient(135deg, #E50914 0%, #B8000A 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: var(--font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    clip-path: none !important;
    box-shadow: 0 8px 24px -4px rgba(229, 9, 20, 0.45) !important;
    transition: all 0.25s ease !important;
}

.login-button::before {
    display: none !important;
}

.login-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #f40612 0%, #cc000b 100%) !important;
    box-shadow: 0 10px 30px -4px rgba(229, 9, 20, 0.6) !important;
    transform: translateY(-1px) !important;
}

.login-button:active:not(:disabled) {
    transform: translateY(0) !important;
}

.login-button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.login-button .arrow {
    font-size: 18px !important;
    transition: transform 0.2s ease !important;
}

.login-button:hover:not(:disabled) .arrow {
    transform: translateX(3px) !important;
}

/* Footer & Attribution */
.panel-divider {
    display: block !important;
    height: 1px !important;
    margin: 30px 0 18px !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

.panel-foot {
    text-align: center !important;
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.panel-foot a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.panel-foot a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}