/* =========================================================
   AI Detector - Login Page Styles
   v8.9 | ai-detector.bg
   ========================================================= */

:root {
    --primary:      #667eea;
    --primary-dark: #764ba2;
    --text:         #2d3748;
    --text-muted:   #718096;
    --border:       #e2e8f0;
    --surface:      #ffffff;
    --bg:           #f8fafc;
    --font-body:    'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}

/* ── LEFT PANEL ── */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.left-panel::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.left-panel h2 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.left-panel .tagline {
    font-size: 1rem;
    opacity: 0.82;
    line-height: 1.65;
    margin-bottom: 44px;
    position: relative;
    z-index: 1;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 500;
}

.fi {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
    backdrop-filter: blur(4px);
}

.lp-footer {
    margin-top: 56px;
    font-size: 0.78rem;
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

/* ── RIGHT PANEL ── */
.right-panel {
    flex: 1;
    flex-shrink: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 52px;
    min-height: 100vh;
}

.form-box { width: 100%; max-width: 380px; }

.form-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.form-logo span {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
}

.form-box h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.form-box .subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.input-wrap { margin-bottom: 20px; }

.input-wrap label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 7px;
}

.input-wrap input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}

.btn-login {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: 0.3px;
    transition: opacity .2s, transform .1s;
}
.btn-login:hover  { opacity: 0.9; }
.btn-login:active { transform: scale(0.99); }

.err {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 12px 14px;
    color: #c53030;
    font-size: 0.875rem;
    margin-top: 18px;
}

.err-expired {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
    padding: 20px;
    text-align: center;
}
.err-expired-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #92400e;
}
.err-expired-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 16px;
    color: #a16207;
}
.btn-renew {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 32px;
    border-radius: 8px;
    transition: opacity 0.2s;
}
.btn-renew:hover { opacity: 0.9; }
.err-expired-link {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #a16207;
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 20px 0 16px;
    font-size: 0.8rem;
    color: #cbd5e0;
    position: relative;
}

.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

.btn-buy {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background .2s, color .2s;
}
.btn-buy:hover { background: var(--primary); color: #fff; }

.btn-plans {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 6px;
}
.btn-plans:hover { text-decoration: underline; }

.back-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.82rem;
    color: #a0aec0;
    text-decoration: none;
}
.back-link:hover { color: var(--primary); }

@media (max-width: 860px) {
    body { flex-direction: column; }

    .left-panel {
        flex: none;
        min-height: auto;
        padding: 36px 28px 32px;
    }

    .lp-logo          { margin-bottom: 24px; }
    .left-panel h2    { font-size: 1.5rem; margin-bottom: 10px; }
    .left-panel .tagline { margin-bottom: 24px; font-size: 0.9rem; }
    .features-list    { gap: 12px; }
    .features-list li { font-size: 0.9rem; }
    .fi               { width: 30px; height: 30px; font-size: 15px; }
    .lp-footer        { margin-top: 28px; }

    .right-panel {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 36px 24px 48px;
    }

    .form-logo        { margin-bottom: 24px; }
    .form-box h1      { font-size: 1.4rem; }
    .form-box .subtitle { margin-bottom: 24px; }
}
