/* ====================================================================
   SIOSTORE AUTH CSS — Login, Register, Forgot Password
   ==================================================================== */
:root {
    --brand:     #1a8fe3;
    --brand-dark: #1278c7;
    --text-primary:   #111827;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --bg:     #f8f9fc;
    --white:  #ffffff;
    --radius: 10px;
    --font-body:    'DM Sans', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); }
a { text-decoration: none; color: inherit; }
input, button { font-family: inherit; }

/* Split layout */
.auth-body  { min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* Brand panel */
.auth-brand {
    background: linear-gradient(135deg, #0f1117 0%, #1a1f2e 60%, #0f1117 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 48px; position: relative; overflow: hidden;
}
.auth-brand::before {
    content: '';
    position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,76,76,.18) 0%, transparent 70%);
    top: -100px; right: -100px; pointer-events: none;
}
.brand-inner { position: relative; z-index: 1; color: #fff; max-width: 380px; }
.brand-logo  { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.logo-mark   { width: 40px; height: 40px; background: var(--brand); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.logo-text   { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.brand-headline { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.brand-sub   { font-size: 16px; color: rgba(255,255,255,.55); line-height: 1.65; margin-bottom: 48px; }
.brand-stats { display: flex; gap: 32px; }
.bstat       { display: flex; flex-direction: column; }
.bstat-num   { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--brand); }
.bstat-lbl   { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* Form panel */
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: var(--white); }
.auth-form-inner { width: 100%; max-width: 400px; }
.auth-form-header { margin-bottom: 32px; }
.auth-form-header h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.auth-form-header p  { font-size: 15px; color: var(--text-secondary); }

/* Alerts */
.auth-alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.auth-alert-success { background: #ecfdf5; color: #065f46; border-left: 3px solid #10b981; }
.auth-alert-error   { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }

/* Form elements */
.auth-form { display: flex; flex-direction: column; gap: 4px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 7px; }
.form-control {
    width: 100%; padding: 11px 14px; border-radius: var(--radius);
    border: 1.5px solid var(--border); background: var(--bg);
    font-size: 14px; color: var(--text-primary); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,76,76,.1); background: #fff; }
.form-control::placeholder { color: #9ca3af; }
.form-control.has-icon  { padding-left: 42px; }
.form-control.has-icon-right { padding-right: 42px; }
.input-icon-wrap { position: relative; }
.input-icon       { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 14px; pointer-events: none; }
.input-icon-right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 14px; padding: 4px; }
.form-hint  { font-size: 12px; color: var(--text-secondary); margin-top: 5px; }
.form-error { font-size: 12px; color: #ef4444; margin-top: 5px; }

/* Buttons */
.btn-auth {
    width: 100%; padding: 13px 20px;
    background: var(--brand); color: #fff; border: none;
    border-radius: var(--radius); font-size: 15px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: background .15s, transform .1s;
}
.btn-auth:hover  { background: var(--brand-dark); }
.btn-auth:active { transform: scale(.98); }
.btn-auth-secondary {
    display: block; padding: 12px 20px; border-radius: var(--radius);
    border: 1.5px solid var(--border); background: var(--white);
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    text-align: center; transition: background .15s, border-color .15s;
}
.btn-auth-secondary:hover { background: var(--bg); border-color: #9ca3af; }
.auth-link { color: var(--brand); font-weight: 600; font-size: 13.5px; }
.auth-link:hover { text-decoration: underline; }

/* Divider */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 13px; color: var(--text-secondary); white-space: nowrap; }

/* Form row */
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 38px;
}
textarea.form-control { resize: vertical; min-height: 90px; }

/* Responsive */
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand  { display: none; }
    .auth-form-panel { padding: 32px 24px; }
}
