/* ═══════════════════════════════════════════
   ReviewMio — Login Page
   Aligned with landing: violet / blue / emerald
   ═══════════════════════════════════════════ */

:root {
    --violet:      #6d28d9;
    --violet-lt:   #8b5cf6;
    --violet-dim:  rgba(109, 40, 217, 0.08);
    --violet-glow: rgba(109, 40, 217, 0.18);
    --blue:        #0284c7;
    --emerald:     #059669;
    --heading:     #0f0a1e;
    --text:        #374151;
    --text-2:      #6b7280;
    --text-3:      #9ca3af;
    --border:      rgba(109, 40, 217, 0.10);
    --border-h:    rgba(109, 40, 217, 0.22);
    --bg-alt:      #f8f7ff;
    --shadow:      0 8px 28px rgba(109, 40, 217, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    --transition:  0.22s cubic-bezier(.4,0,.2,1);
}

/* ── Base ────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

/* ── Left panel ──────────────────────────── */
.login-left {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(148deg, #1a0a3d 0%, #0c1f5f 52%, #063b2f 100%);
    display: flex;
    flex-direction: column;
    padding: 40px 40px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.login-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(109,40,217,0.35), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(5,150,105,0.25), transparent 55%);
    pointer-events: none;
}

/* Logo */
.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    margin-bottom: 52px;
}

.login-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: "Manrope", sans-serif;
}

.login-logo-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Body */
.login-left-body {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.login-tagline {
    font-family: "Bricolage Grotesque", "Manrope", sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.login-tagline-em {
    opacity: 0.45;
}

/* Mockup */
.login-mockup {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    position: relative;
}

.mockup-card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.14);
    transform: rotate(-1deg);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    position: relative;
    z-index: 2;
}

.mockup-card:hover {
    transform: rotate(0deg) translateY(-2px);
}

.mockup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mockup-stars {
    display: flex;
    gap: 2px;
}

.mockup-published {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: rgba(5,150,105,0.10);
    padding: 3px 8px;
    border-radius: 999px;
}

.mockup-text {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.55;
    margin-bottom: 14px;
    font-weight: 500;
}

.mockup-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d28d9, #0284c7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mockup-author {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mockup-name {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

.mockup-platform {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.mockup-second-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
    transform: rotate(0.8deg);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.mockup-second-card:hover {
    transform: rotate(0deg);
}

.mockup-second-card .mockup-stars {
    margin-bottom: 8px;
}

.mockup-second-text {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    font-weight: 500;
}

/* Stats */
.login-stats {
    display: flex;
    gap: 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 12px;
}

.stat-item + .stat-item {
    border-left: 1px solid rgba(255,255,255,0.10);
}

.stat-number {
    font-family: "Bricolage Grotesque", "Manrope", sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.50);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

/* ── Right panel ─────────────────────────── */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}

.login-form-container {
    width: 100%;
    max-width: 500px;
}

/* Form header */
.login-form-header {
    margin-bottom: 32px;
}

.login-form-header h2 {
    font-family: "Bricolage Grotesque", "Manrope", sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.login-form-header p {
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
}

/* Form */
.login-form { margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    color: var(--heading);
    background: #fff;
    transition: all var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-dim);
}

.form-group input::placeholder {
    color: var(--text-3);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: all var(--transition);
    border-radius: 14px;
    height: 50px;
    padding: 0 28px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(130deg, var(--violet), var(--blue));
    color: #fff;
    box-shadow: 0 4px 18px var(--violet-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(109,40,217,0.28);
    filter: brightness(1.06);
}

.btn-block { width: 100%; }
.btn-large { height: 50px; font-size: 15px; }

/* Alert */
.alert {
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.alert-error {
    background: rgba(220,38,38,0.06);
    color: #991b1b;
    border: 1px solid rgba(220,38,38,0.20);
}

.alert-success {
    background: rgba(5,150,105,0.06);
    color: #065f46;
    border: 1px solid rgba(5,150,105,0.20);
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Forgot-password link under the login button */
.login-forgot-row {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13px;
}
.login-forgot-link {
    color: var(--violet, #6d28d9);
    text-decoration: none;
}
.login-forgot-link:hover { text-decoration: underline; }

/* Single-column variant for forgot/reset (no marketing pane) */
.login-page--single .login-right { flex: 1; max-width: 480px; margin: 0 auto; }
.login-logo--top { margin-bottom: 24px; display: inline-flex; }

/* Demo block */
.login-demo {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--heading);
}

.demo-credentials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.demo-label { color: var(--text-3); font-weight: 600; }

.demo-item code {
    background: #fff;
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: var(--violet);
    font-weight: 600;
}

/* Register link */
.login-register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 16px;
    font-weight: 500;
}

.login-register-link a {
    color: var(--violet);
    text-decoration: none;
    font-weight: 700;
}

.login-register-link a:hover { text-decoration: underline; }

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-link {
    color: var(--text-3);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-link:hover { color: var(--violet); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .login-left { display: none; }
    .login-right { padding: 40px 24px; background: var(--bg-alt); }
    .login-form-container {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 32px 28px;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 480px) {
    .login-right { padding: 24px 16px; }
    .login-form-container { padding: 24px 20px; }
    .login-form-header h2 { font-size: 22px; }
    /* iOS zoom prevention */
    .form-group input {
        font-size: 16px;
    }
}
