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

/* =========================================================
   VARIABLES
   ========================================================= */
:root {
    --primary:        #1e7a34;
    --primary-dark:   #145c26;
    --primary-light:  #e8f5e9;
    --accent:         #f59e0b;
    --success:        #10b981;
    --danger:         #ef4444;
    --text-main:      #0f172a;
    --text-muted:     #64748b;
    --border:         #e2e8f0;
    --bg-form:        #f8fafc;
    --white:          #ffffff;
    --focus-ring:     rgba(30, 122, 52, 0.18);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-form);
    color: var(--text-main);
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* =========================================================
   SPLIT LAYOUT
   ========================================================= */
.auth-page {
    display: flex;
    min-height: 100vh;
}

/* ----- LEFT BRAND PANEL ----- */
.brand-panel {
    position: relative;
    width: 44%;
    min-height: 100vh;
    background: linear-gradient(145deg, #0a3d1f 0%, #145c26 40%, #1e7a34 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 50px;
    flex-shrink: 0;
}

.brand-inner {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 420px;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}
.brand-logo-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.brand-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--white);
}

/* Headline */
.brand-headline h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
}
.brand-highlight {
    color: var(--accent);
}
.brand-headline p {
    font-size: 15px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin-bottom: 40px;
}

/* Stats row */
.brand-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 40px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}
.brand-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}
.brand-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
    font-weight: 500;
}

/* Feature list */
.brand-features {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.brand-features li i {
    color: #34d399;
    font-size: 15px;
    flex-shrink: 0;
}

/* Trust badge */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.brand-badge i { color: var(--accent); }

/* Decorative blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.25;
    z-index: 1;
}
.blob-1 {
    width: 350px; height: 350px;
    background: #34d399;
    top: -100px; right: -120px;
}
.blob-2 {
    width: 280px; height: 280px;
    background: #f59e0b;
    bottom: -80px; left: -60px;
}

/* ----- RIGHT FORM PANEL ----- */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-form);
    overflow-y: auto;
    min-height: 100vh;
}
.form-panel-inner {
    width: 100%;
    max-width: 520px;
}

/* =========================================================
   AUTH CARD
   ========================================================= */
.auth-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    padding: 44px 40px;
    width: 100%;
}

/* wide-card uses the panel's max-width naturally */
.auth-card.wide-card { max-width: 100%; }

/* =========================================================
   AUTH HEADER
   ========================================================= */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-header-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.form-group { margin-bottom: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-main);
    letter-spacing: 0.1px;
}
.form-label .required { color: var(--danger); }

.input-icon-wrapper { position: relative; }

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 11px 14px 11px 38px;
    font-size: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}
.form-control::placeholder { color: #c0cad8; }

/* Sponsor feedback */
#sponsor-feedback { min-height: 18px; }

/* =========================================================
   DIVIDER
   ========================================================= */
.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
    letter-spacing: 0.2px;
    text-decoration: none;
}
.btn-submit:hover { opacity: 0.92; }
.btn-submit:active { transform: scale(0.985); }

/* =========================================================
   AUTH FOOTER
   ========================================================= */
.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* =========================================================
   ALERTS
   ========================================================= */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.alert-error ul { margin: 4px 0 0 16px; }
.alert-error li { margin-bottom: 2px; }

/* =========================================================
   THANK YOU PAGE
   ========================================================= */
.success-icon-wrap { text-align: center; margin-bottom: 6px; }

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--success);
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 0 0 10px #ecfdf5;
    margin-bottom: 4px;
}

.credentials-box {
    background: #fafafa;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.credentials-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.credential-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.credential-item:last-child { border-bottom: none; padding-bottom: 0; }
.credential-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.credential-value {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 6px;
}
.credential-value.password {
    color: var(--text-main);
    background: #f1f5f9;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .brand-panel { display: none; }
    .form-panel {
        align-items: flex-start;
        padding: 32px 20px;
    }
}

@media (max-width: 540px) {
    .auth-card { padding: 32px 22px; border-radius: 14px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}
