/* ===============================================================
   ReUse Market — Admin & Vendor Login Redesign
   Matches home screen: Warm & Crafted · Fraunces + DM Sans · Earthy palette
   =============================================================== */

:root {
    --rd-forest:          #2D6A4F;
    --rd-forest-dark:     #1B4332;
    --rd-forest-light:    #D8F3DC;
    --rd-forest-50:       rgba(45,106,79,0.07);
    --rd-sage:            #74A68D;
    --rd-terracotta:      #C17B5A;
    --rd-terracotta-light:#F5E6DC;
    --rd-cream:           #FAF6F1;
    --rd-cream-dark:      #F0E9DF;
    --rd-warm-white:      #FDFCFA;
    --rd-text:            #2C2416;
    --rd-text-secondary:  #6B5E50;
    --rd-text-muted:      #9C917F;
    --rd-border:          #E8E0D4;
    --rd-dark:            #1B4332;
    --rd-radius:          10px;
    --rd-radius-lg:       14px;
    --rd-radius-xl:       20px;
    --rd-shadow:          0 4px 16px rgba(44,36,22,0.07);
    --rd-shadow-lg:       0 12px 40px rgba(44,36,22,0.10);
    --rd-shadow-warm:     0 8px 30px rgba(193,123,90,0.12);
    --rd-font-display:    'Fraunces', 'Georgia', serif;
    --rd-font-body:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rd-ease:            cubic-bezier(0.16, 1, 0.3, 1);
    --rd-transition:      0.3s var(--rd-ease);
}

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

html, body {
    height: 100%;
    font-family: var(--rd-font-body);
    background: var(--rd-cream);
    color: var(--rd-text);
    -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.rl-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
    .rl-page { grid-template-columns: 1fr; }
}

/* ── LEFT PANEL ── */
.rl-left {
    background: var(--rd-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(40px, 6vw, 64px);
    min-height: 100vh;
}

@media (max-width: 900px) {
    .rl-left { display: none; }
}

/* Organic background blobs */
.rl-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 85% 20%, rgba(45,106,79,0.45) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 5%  90%, rgba(193,123,90,0.20) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(116,166,141,0.10) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating leaf motifs */
.rl-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    background: rgba(45,106,79,0.12);
    pointer-events: none;
}

.rl-left__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rl-left__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: auto;
}

.rl-left__logo {
    display: inline-flex;
    text-decoration: none;
}

.rl-left__logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.rl-left__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,243,220,0.12);
    border: 1px solid rgba(212,243,220,0.25);
    color: var(--rd-forest-light);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rl-left__badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #52B788;
    flex-shrink: 0;
    animation: rl-pulse 2s ease-in-out infinite;
}

@keyframes rl-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(1.3); }
}

.rl-left__body {
    margin-top: auto;
    padding-top: 48px;
}

.rl-left__eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-sage);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.rl-left__headline {
    font-family: var(--rd-font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
    font-optical-sizing: auto;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.rl-left__headline em {
    color: #95D5B2;
    font-style: normal;
}

.rl-left__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.60);
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 40px;
}

/* Feature pills */
.rl-left__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rl-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--rd-radius);
    padding: 12px 16px;
    transition: background var(--rd-transition);
}

.rl-feat:hover { background: rgba(255,255,255,0.10); }

.rl-feat__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(82,183,136,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: #95D5B2;
}

.rl-feat__text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}

.rl-feat__text strong {
    display: block;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: 14px;
}

.rl-left__footer {
    margin-top: 48px;
    font-size: 12px;
    color: rgba(255,255,255,0.30);
}

/* ── RIGHT PANEL ── */
.rl-right {
    background: var(--rd-warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 72px);
    min-height: 100vh;
    position: relative;
}

/* subtle texture */
.rl-right::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 280px;
    height: 280px;
    background: radial-gradient(ellipse at top right, var(--rd-terracotta-light), transparent 70%);
    opacity: 0.35;
    pointer-events: none;
}

.rl-right::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse at bottom left, var(--rd-forest-light), transparent 70%);
    opacity: 0.30;
    pointer-events: none;
}

.rl-form-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

/* Mobile logo */
.rl-mobile-logo {
    display: none;
    margin-bottom: 28px;
}

.rl-mobile-logo img {
    height: 30px;
    width: auto;
}

@media (max-width: 900px) {
    .rl-mobile-logo { display: block; }
}

/* Version badge */
.rl-version {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--rd-text-muted);
    background: var(--rd-cream-dark);
    border: 1px solid var(--rd-border);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.rl-form-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--rd-terracotta);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rl-form-title {
    font-family: var(--rd-font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    color: var(--rd-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.rl-form-subtitle {
    font-size: 14px;
    color: var(--rd-text-secondary);
    line-height: 1.5;
}

/* ── Form fields ── */
.rl-field {
    margin-bottom: 20px;
}

.rl-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-text);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.rl-label a {
    font-size: 12px;
    font-weight: 500;
    color: var(--rd-forest);
    text-decoration: none;
    transition: color var(--rd-transition);
}

.rl-label a:hover { color: var(--rd-forest-dark); text-decoration: underline; }

.rl-input-wrap {
    position: relative;
}

.rl-input {
    width: 100%;
    background: var(--rd-cream);
    border: 1.5px solid var(--rd-border);
    border-radius: var(--rd-radius);
    padding: 12px 44px 12px 16px;
    font-family: var(--rd-font-body);
    font-size: 14px;
    color: var(--rd-text);
    transition: border-color var(--rd-transition), box-shadow var(--rd-transition), background var(--rd-transition);
    appearance: none;
    -webkit-appearance: none;
}

.rl-input::placeholder { color: var(--rd-text-muted); }

.rl-input:focus {
    outline: none;
    border-color: var(--rd-forest);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.10);
}

.rl-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--rd-text-muted);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color var(--rd-transition);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.rl-input-icon:hover { color: var(--rd-text); }

/* ── Remember / links row ── */
.rl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.rl-check-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rl-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--rd-border);
    appearance: none;
    -webkit-appearance: none;
    background: var(--rd-cream);
    cursor: pointer;
    transition: background var(--rd-transition), border-color var(--rd-transition);
    flex-shrink: 0;
    position: relative;
}

.rl-check:checked {
    background: var(--rd-forest);
    border-color: var(--rd-forest);
}

.rl-check:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 2px;
    width: 5px; height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.rl-check-label {
    font-size: 13px;
    color: var(--rd-text-secondary);
    user-select: none;
}

.rl-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--rd-forest);
    text-decoration: none;
    transition: color var(--rd-transition);
}

.rl-link:hover { color: var(--rd-forest-dark); text-decoration: underline; }

/* ── Captcha ── */
.rl-captcha {
    margin-bottom: 20px;
}

/* ── Submit button ── */
.rl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--rd-forest);
    color: #fff;
    border: none;
    border-radius: var(--rd-radius);
    font-family: var(--rd-font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background var(--rd-transition), transform var(--rd-transition), box-shadow var(--rd-transition);
    position: relative;
    overflow: hidden;
}

.rl-btn:hover {
    background: var(--rd-forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,106,79,0.28);
}

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

.rl-btn i { font-size: 15px; }

/* Ripple */
.rl-btn .rl-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.30);
    width: 100px; height: 100px;
    margin-top: -50px; margin-left: -50px;
    animation: rl-ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rl-ripple-expand {
    from { transform: scale(0); opacity: 1; }
    to   { transform: scale(4); opacity: 0; }
}

/* ── Demo credentials box ── */
.rl-demo-box {
    margin-top: 20px;
    background: var(--rd-cream-dark);
    border: 1.5px dashed var(--rd-border);
    border-radius: var(--rd-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rl-demo-creds {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rl-demo-cred {
    font-size: 12px;
    color: var(--rd-text-secondary);
}

.rl-demo-cred span {
    font-weight: 600;
    color: var(--rd-text);
}

.rl-demo-copy {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--rd-forest);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background var(--rd-transition);
}

.rl-demo-copy:hover { background: var(--rd-forest-dark); }

/* ── Reveal animation ── */
.rl-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--rd-ease), transform 0.6s var(--rd-ease);
    transition-delay: var(--rl-delay, 0s);
}

.rl-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Divider ── */
.rl-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--rd-text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rl-divider::before, .rl-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rd-border);
}

/* ── Register link row ── */
.rl-register-row {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--rd-text-muted);
}

.rl-register-row a {
    font-weight: 600;
    color: var(--rd-forest);
    text-decoration: none;
    transition: color var(--rd-transition);
}

.rl-register-row a:hover { color: var(--rd-forest-dark); text-decoration: underline; }

/* ── Responsive tweaks ── */
@media (max-width: 540px) {
    .rl-right {
        padding: 28px 20px;
        align-items: flex-start;
    }
    .rl-form-wrap { max-width: 100%; }
}
