/* =============================================================
   INITPRIME — Auth Pages CSS (login, etc.)
============================================================= */

/* ── Layout ─────────────────────────────────────────────── */
.auth-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Left branding panel ─────────────────────────────────── */
.auth-panel-left {
    width: 46%;
    flex-shrink: 0;
    background: var(--ip-bg-2);
    border-right: 1px solid var(--ip-card-border);
    position: relative;
    overflow: hidden;
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-inner {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.auth-panel-heading {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ip-text);
}

.auth-panel-sub {
    color: var(--ip-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 360px;
}

/* Role chips */
.auth-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.auth-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ip-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ip-card-border);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
}
.auth-role-chip i { color: var(--ip-accent); }

/* Decorative grid lines */
.panel-grid { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pg-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(37,99,235,0.08), transparent);
    width: 1px;
    top: 0; bottom: 0;
}
.pg-line-1 { left: 30%; }
.pg-line-2 { left: 65%; }
.pg-dot {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
}
.pg-dot-1 { top: -80px; right: -80px; }
.pg-dot-2 { bottom: -100px; left: -60px; }

/* ── Right form panel ────────────────────────────────────── */
.auth-panel-right {
    flex: 1;
    background: var(--ip-bg);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

/* Eyebrow + title */
.auth-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ip-accent);
    margin-bottom: 0.5rem;
}
.auth-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.auth-sub {
    font-size: 0.9rem;
    color: var(--ip-muted);
    margin-bottom: 0;
}

/* Flash alerts */
.auth-alert {
    border-radius: var(--ip-radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
}
.auth-alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #FCA5A5;
}
.auth-alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: #86EFAC;
}

/* ── Form elements ───────────────────────────────────────── */
.ip-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ip-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.ip-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ip-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--ip-muted-2);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.ip-input {
    width: 100%;
    background: var(--ip-card-bg);
    border: 1.5px solid var(--ip-card-border);
    border-radius: var(--ip-radius-sm);
    color: var(--ip-text);
    font-family: var(--font-body);
    font-size: 0.925rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    transition: border-color var(--ip-transition), box-shadow var(--ip-transition);
    outline: none;
}
.ip-input::placeholder { color: var(--ip-muted-2); }
.ip-input:focus {
    border-color: var(--ip-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.ip-input.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

/* Password toggle */
.ip-input-toggle {
    position: absolute;
    right: 0.85rem;
    background: transparent;
    border: none;
    color: var(--ip-muted-2);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--ip-transition);
    line-height: 1;
}
.ip-input-toggle:hover { color: var(--ip-text); }

/* Field errors */
.ip-field-error {
    display: block;
    font-size: 0.78rem;
    color: #FCA5A5;
    margin-top: 0.35rem;
    min-height: 1rem;
}

/* Checkbox */
.ip-checkbox {
    width: 16px; height: 16px;
    accent-color: var(--ip-accent);
    cursor: pointer;
    flex-shrink: 0;
}
.ip-checkbox-label {
    font-size: 0.85rem;
    color: var(--ip-muted);
    cursor: pointer;
    user-select: none;
}

/* Submit button */
.auth-submit {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Forgot + footer note */
.auth-forgot {
    font-size: 0.8rem;
    color: var(--ip-muted);
    transition: color var(--ip-transition);
}
.auth-forgot:hover { color: var(--ip-accent-2); }

.auth-footer-note {
    font-size: 0.85rem;
    color: var(--ip-muted);
    text-align: center;
}
.auth-footer-note a { color: var(--ip-accent-2); font-weight: 500; }
.auth-footer-note a:hover { color: var(--ip-text); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .auth-panel-right { padding: 2.5rem 1.5rem; }
    .auth-form-wrap { max-width: 100%; }
}
