/* =============================================================
   Auth pages – Login & Reset Password
   Shared styles for custom_login and custom_reset_password
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'DM Sans', 'Segoe UI', sans-serif; background: #0f0f14; }

.sp-shell { display: grid; grid-template-columns: 1fr 480px; min-height: 100vh; }

/* ----------------------------------------------------------
   LEFT panel
---------------------------------------------------------- */
.sp-visual {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 52px 60px; background: #0f0f14;
}
.sp-visual::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 85%, rgba(192,57,43,.5) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 15%, rgba(192,57,43,.2) 0%, transparent 50%);
}
.sp-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 36px 36px;
}
.sp-ring {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    border: 1px solid rgba(192,57,43,.2);
    top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 0;
    animation: sp-breathe 8s ease-in-out infinite;
}
.sp-ring::after {
    content: ''; position: absolute; inset: 60px;
    border-radius: 50%; border: 1px solid rgba(192,57,43,.12);
}
@keyframes sp-breathe {
    0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: .7; }
    50%      { transform: translate(-50%,-50%) scale(1.05); opacity: 1;  }
}

.sp-visual-top { position: relative; z-index: 1; }
.sp-logo img   { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.sp-visual-mid { position: relative; z-index: 1; }
.sp-visual-bot { position: relative; z-index: 1; }

.sp-headline    { font-family: 'DM Serif Display', serif; font-size: clamp(2.6rem,3.8vw,4rem); line-height: 1.08; color: #fff; margin-bottom: 24px; }
.sp-headline em { font-style: italic; color: #e8a09a; }
.sp-subline     { font-size: 15px; font-weight: 300; color: rgba(255,255,255,.45); line-height: 1.75; max-width: 400px; }
.sp-divider     { width: 40px; height: 2px; background: #c0392b; border-radius: 2px; margin-bottom: 24px; }
.sp-stats       { display: flex; gap: 48px; }
.sp-stat-n      { font-family: 'DM Serif Display', serif; font-size: 2rem; color: #fff; line-height: 1; }
.sp-stat-l      { font-size: 11px; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }

/* ----------------------------------------------------------
   RIGHT panel
---------------------------------------------------------- */
.sp-form-wrap {
    background: #fff; display: flex; flex-direction: column;
    justify-content: center; padding: 60px 52px;
    position: relative; overflow-y: auto;
}
.sp-form-wrap::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
}

.sp-form-icon {
    width: 52px; height: 52px; background: #fff0ee; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 28px; border: 1.5px solid #ffd5d0;
}
.sp-form-icon svg { width: 24px; height: 24px; fill: #c0392b; }

.sp-form-title { font-family: 'DM Serif Display', serif; font-size: 2rem; color: #1a1a2e; margin-bottom: 6px; line-height: 1.15; }
.sp-form-desc  { font-size: 14px; font-weight: 300; color: #9ca3af; margin-bottom: 40px; line-height: 1.6; }

.sp-field { margin-bottom: 18px; }
.sp-label {
    display: block; font-size: 12.5px; font-weight: 600; color: #374151;
    margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase;
}
.sp-input {
    width: 100%; height: 50px; padding: 0 16px;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-size: 15px;
    color: #1a1a2e; background: #fafafa;
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: none; -webkit-appearance: none;
}
.sp-input::placeholder { color: #d1d5db; }
.sp-input:focus { border-color: #c0392b; background: #fff; box-shadow: 0 0 0 4px rgba(192,57,43,.09); }

.sp-submit {
    width: 100%; height: 52px; margin-top: 10px;
    background: #c0392b; color: #fff; border: none; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .03em;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: background .15s, transform .1s, box-shadow .2s;
}
.sp-submit svg    { width: 17px; height: 17px; fill: white; flex-shrink: 0; }
.sp-submit:hover  { background: #922b21; box-shadow: 0 6px 24px rgba(192,57,43,.38); transform: translateY(-1px); }
.sp-submit:active { transform: translateY(0); box-shadow: none; }

.sp-error {
    background: #fef2f2; border: 1px solid #fecaca;
    border-left: 3px solid #c0392b; border-radius: 8px;
    padding: 13px 16px; margin-bottom: 22px;
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; color: #7f1d1d; line-height: 1.5;
}
.sp-error svg { flex-shrink: 0; margin-top: 1px; fill: #c0392b; }

.sp-success {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-left: 3px solid #16a34a; border-radius: 8px;
    padding: 13px 16px; margin-bottom: 22px;
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; color: #14532d; line-height: 1.5;
}
.sp-success svg { flex-shrink: 0; margin-top: 1px; fill: #16a34a; }

.sp-reset     { text-align: center; margin-top: 22px; }
.sp-reset a   { font-size: 13px; color: #9ca3af; text-decoration: none; transition: color .15s; }
.sp-reset a:hover { color: #c0392b; }

.sp-footer { text-align: center; margin-top: 32px; font-size: 11.5px; color: #d1d5db; }

/* ----------------------------------------------------------
   Animations
---------------------------------------------------------- */
.sp-anim { animation: sp-up .45s cubic-bezier(.22,1,.36,1) both; }
.sp-a1 { animation-delay: .04s; }
.sp-a2 { animation-delay: .09s; }
.sp-a3 { animation-delay: .14s; }
.sp-a4 { animation-delay: .19s; }
.sp-a5 { animation-delay: .24s; }
.sp-a6 { animation-delay: .29s; }
@keyframes sp-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   Responsive
---------------------------------------------------------- */
@media (max-width: 860px) {
    .sp-shell { grid-template-columns: 1fr; }
    .sp-visual { display: none; }
    .sp-form-wrap { padding: 52px 36px; min-height: 100vh; }
}
@media (max-width: 480px) {
    .sp-form-wrap { padding: 40px 24px; }
}
