/* ============================================================
   WinChainPro - Auth Pages Stylesheet
   File: public/assets/css/auth.css
   ============================================================ */

:root {
    --primary:    #041335;
    --accent:     #041335;
    --dark:       #041335;
    --white:      #ffffff;
    --border:     #e2e6ea;
    --bg-muted:   #f4f5f7;
    --text:       #22272e;
    --text-muted: #64748b;
    --red:        #ef4444;
    --font-head:  'Poppins', sans-serif;
    --font-body:  'Open Sans', sans-serif;
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-full:9999px;
    --inputborder : #16abc9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--text);
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-head); }
a { text-decoration: none; color: inherit; }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ---- Left Panel ---- */
.auth-left {
    background: linear-gradient(135deg, #041335 0%, #1a3a5c 50%, #1a4a5a 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.auth-left-content { position: relative; z-index: 1; }

.auth-brand {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 48px;
}

.auth-brand span { color: var(--accent); }

.auth-headline {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.auth-headline em { font-style: normal; color: var(--accent); }

.auth-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    max-width: 380px;
    margin-bottom: 40px;
}

/* Feature list */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.auth-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* Step list (register) */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(217,104,48,0.25);
    border: 1.5px solid rgba(217,104,48,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.step-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.step-text strong {
    color: var(--white);
    display: block;
    margin-bottom: 2px;
}

/* Quote */
.auth-quote {
    border-left: 3px solid rgba(217,104,48,0.5);
    padding-left: 16px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.auth-quote-author {
    font-style: normal;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    display: block;
}

.auth-copyright {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.28);
    position: relative;
    z-index: 1;
}

/* ---- Right Panel ---- */
.auth-right {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    overflow-y: auto;
}

.auth-form-box {
    width: 100%;
    max-width: 420px;
}

.auth-form-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-form-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: var(--font-head);
    color: var(--text);
}

.form-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--text);
    font-family: var(--font-body);
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    background: var(--white);
}

.form-input:focus {
    box-shadow: 0 0 0 3px #0dcaf01c;
    border-color: var(--inputborder);
}

.form-input.is-invalid { border-color: var(--red); }

.form-error {
    font-size: 0.76rem;
    color: var(--red);
    margin-top: 4px;
    display: block;
}

.form-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Remember / Forgot row */
.form-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.82rem;
}

.form-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
}

.forgot-link:hover { text-decoration: underline; }

/* Submit button */
.btn-submit {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-bottom: 20px;
}

.btn-submit:hover { opacity: 0.88; }

/* Divider */
.auth-divider {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 16px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--white);
    padding: 0 12px;
    position: relative;
}

/* Bottom links */
.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-back {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-back:hover { color: var(--accent); }

/* Error banner */
.error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #991b1b;
    margin-bottom: 20px;
}

/* Success box */
.success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.875rem;
    color: #166534;
    margin-bottom: 20px;
    text-align: center;
}

/* Terms text */
.terms-text {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 16px;
}

.terms-text a { color: var(--accent); }

/* ============================================================
   CENTERED LAYOUT (forgot password)
   ============================================================ */
.auth-center-layout {
    background: #041335;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-center-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-center-brand {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 32px;
}

.auth-center-brand span { color: var(--accent); }

.auth-center-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0dcaf01c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.auth-center-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 6px;
}

.auth-center-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-left   { display: none; }
    .auth-right  { padding: 32px 20px; align-items: flex-start; padding-top: 48px; }
}