/* Resellnom Premium Login Redesign styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --rn-primary: #0066ff;
    --rn-primary-hover: #0052cc;
    --rn-dark-bg: #0a0f1d;
    --rn-dark-card: #111827;
    --rn-light-bg: #f8fafc;
    --rn-text-main: #0f172a;
    --rn-text-muted: #64748b;
    --rn-border-color: #e2e8f0;
    --rn-radius: 20px;
    --rn-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   FORCE WIPE PARENT MASTER CLASSES (Prevents theme layouts from breaking page)
   ========================================================================== */
html, body, 
#main-body, .main-content, .app-main, #wrapper, .wrapper,
#app, .app-container, .main-wrapper, #page-container {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    background-color: #f8fafc !important;
    position: static !important;
}

/* Hide native header, navigation bar banners, and footer rows */
header, nav, .navbar, .topbar, .header-navigation, .app-header, 
.breadcrumb-wrapper, #header, .announcement-banner, .main-header,
footer, .footer, .app-footer, .copyright-bar, #footer, .sub-footer {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   MAIN SYSTEM LAYOUT CONTAINER 
   ========================================================================== */
.rn-login-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    display: flex !important;
    background-color: var(--rn-light-bg) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rn-login-container * {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   LEFT SIDE: HERO & INFRASTRUCTURE VISUALS (ADAPTIVE HEIGHT HEIGHT FIX)
   ========================================================================== */
.rn-login-hero {
    flex: 1.1;
    background: linear-gradient(135deg, #090d16 0%, #0d1527 50%, #15223f 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Keeps layout stacked perfectly instead of stretching */
    padding: 40px;
    overflow-y: auto;
    color: #ffffff;
}

/* Minimal clean scrolling block for smaller laptop screens */
.rn-login-hero::-webkit-scrollbar {
    width: 4px;
}
.rn-login-hero::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.rn-hero-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
    z-index: 1;
}

.rn-hero-content {
    position: relative;
    z-index: 5;
    max-width: 520px;
    margin-bottom: auto; /* Pushes the footer link to the bottom without breaking layout rules */
}

.rn-logo {
    height: 36px;
    width: auto;
    margin-bottom: 30px;
    display: block;
}

.rn-hero-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: 0;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rn-hero-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 30px;
}

/* Server Stack Artwork Blueprint */
.rn-server-artwork {
    position: relative;
    height: 110px;
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--rn-radius);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rn-server-stack {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rn-server-layer {
    height: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rn-server-layer .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 15px;
    display: inline-block;
}

.rn-server-layer .indicator.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.rn-server-layer .indicator.blue { background: var(--rn-primary); box-shadow: 0 0 8px var(--rn-primary); }

.rn-server-layer .pulse-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(0,102,255,0.4) 0%, rgba(255,255,255,0.05) 100%);
    width: 70%;
    border-radius: 2px;
}

/* Features List Framework - Restored and Spaced Safely */
.rn-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rn-features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rn-feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    color: #3b82f6;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: var(--rn-transition);
}

.rn-features-list li:hover .rn-feat-icon {
    background: var(--rn-primary);
    color: white;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

.rn-feat-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 1px;
}

.rn-feat-text span {
    font-size: 0.825rem;
    color: #94a3b8;
}

.rn-hero-footer {
    position: relative;
    z-index: 5;
    font-size: 0.8rem;
    color: #475569;
    margin-top: 20px;
}

/* ==========================================================================
   RIGHT SIDE: GLASSMORPHIC WHITE/BLUE LOGIN CARD
   ========================================================================== */
.rn-login-form-area {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
    position: relative;
    overflow-y: auto;
}

.rn-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.rn-mobile-brand {
    display: none;
}

.rn-card-header {
    margin-bottom: 28px;
}

.rn-card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rn-text-main);
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 8px;
}

.rn-card-header p {
    color: var(--rn-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Forms Framework */
.rn-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rn-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rn-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rn-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.rn-forgot-link, .rn-register-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rn-primary);
    text-decoration: none;
    transition: var(--rn-transition);
}

.rn-forgot-link:hover, .rn-register-link:hover {
    color: var(--rn-primary-hover);
    text-decoration: underline;
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--rn-transition);
}

.rn-input {
    width: 100%;
    padding: 13px 16px 13px 46px;
    border: 1px solid var(--rn-border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--rn-text-main);
    background-color: #f8fafc;
    transition: var(--rn-transition);
}

.rn-input:focus {
    outline: none;
    border-color: var(--rn-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.rn-input:focus + .input-icon {
    color: var(--rn-primary);
}

.rn-password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 1.05rem;
}

.rn-password-toggle:hover {
    color: var(--rn-text-main);
}

/* Actions Box */
.rn-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -2px;
}

.rn-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #475569;
    user-select: none;
}

.rn-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--rn-border-color);
    cursor: pointer;
}

/* Primary Form Button */
.rn-btn-primary {
    width: 100%;
    padding: 13px 24px;
    background: var(--rn-primary);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--rn-transition);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.rn-btn-primary:hover {
    background: var(--rn-primary-hover);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
    transform: translateY(-1px);
}

.rn-btn-primary:active {
    transform: translateY(0);
}

/* Alerts System */
.rn-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.rn-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
}

.rn-alert-info {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
}

/* Social & Native Add-ons */
.rn-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--rn-text-muted);
    font-size: 0.85rem;
}

.rn-divider::before, .rn-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--rn-border-color);
}

.rn-divider:not(:empty)::before { margin-right: .75em; }
.rn-divider:not(:empty)::after { margin-left: .75em; }

.rn-card-footer {
    text-align: center;
    margin-top: 24px;
}

.rn-card-footer p {
    font-size: 0.925rem;
    color: var(--rn-text-muted);
    margin: 0;
}

.rn-captcha-container {
    margin: 5px 0;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE SCALING BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .rn-login-hero {
        padding: 30px;
    }
    .rn-login-form-area {
        padding: 30px;
    }
    .rn-hero-text h1 {
        font-size: 1.95rem;
    }
}

@media (max-width: 890px) {
    html, body, #main-body, .main-content, .main-wrapper, #page-container {
        overflow-y: auto !important;
        height: auto !important;
        max-height: none !important;
    }
    .rn-login-container {
        flex-direction: column !important;
        position: relative !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    .rn-login-hero {
        display: none !important;
    }
    .rn-login-form-area {
        flex: 1 !important;
        width: 100% !important;
        padding: 50px 20px !important;
        background-color: #ffffff !important;
    }
    .rn-mobile-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    .rn-mobile-brand img {
        height: 38px !important;
        margin-bottom: 12px !important;
    }
    .rn-mobile-brand h2 {
        font-size: 1.55rem !important;
        font-weight: 700 !important;
        color: var(--rn-text-main) !important;
        margin: 0 !important;
    }
    .rn-card-header {
        display: none !important;
    }
}
