/* ==========================================================================
   Retail Sponsor – Custom Login Page
   ========================================================================== */

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

:root {
    --rsp-indigo: #059669;
    --rsp-indigo-light: #34d399;
    --rsp-cyan: #f97316;
    --rsp-green: #10b981;
    --rsp-red: #ef4444;
    --rsp-bg: #f8fafc;
    --rsp-text: #0f172a;
    --rsp-muted: #94a3b8;
    --rsp-border: #e5e7eb;
    --rsp-font: 'DM Sans', -apple-system, sans-serif;
    --rsp-mono: 'Space Mono', monospace;
}

body.rsp-login-page {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--rsp-font);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    background: var(--rsp-bg);
}

.rsp-login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ================================================================== */
/*  LEFT: BRANDING PANEL                                               */
/* ================================================================== */

.rsp-login-brand {
    width: 45%;
    background: #07070e;
    color: #fff;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.rsp-login-brand::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5,150,105,0.18) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.rsp-login-brand::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

/* Logo */
.rsp-login-brand__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}
.rsp-login-brand__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--rsp-indigo), var(--rsp-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
}
.rsp-login-brand__logo-img {
    height: 34px;
    width: 34px;
    border-radius: 9px;
    object-fit: cover;
}

/* Content */
.rsp-login-brand__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.rsp-login-brand__content h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rsp-login-brand__content > p {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    margin-bottom: 40px;
    max-width: 380px;
}

/* Features list */
.rsp-login-brand__features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.rsp-login-brand__feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.rsp-login-brand__feature-icon {
    font-size: 22px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rsp-login-brand__feature strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: rgba(255,255,255,0.9);
}
.rsp-login-brand__feature p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    line-height: 1.5;
    margin: 0;
}

/* Footer */
.rsp-login-brand__footer {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}
.rsp-login-brand__footer span {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}

/* ================================================================== */
/*  RIGHT: FORM PANEL                                                  */
/* ================================================================== */

.rsp-login-form-panel {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #fff;
}
.rsp-login-form-inner {
    width: 100%;
    max-width: 400px;
}
.rsp-login-form-inner h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--rsp-text);
    margin-bottom: 8px;
}
.rsp-login-sub {
    color: var(--rsp-muted);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Fields */
.rsp-field {
    margin-bottom: 20px;
}
.rsp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rsp-text);
    margin-bottom: 7px;
}
.rsp-field__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}
.rsp-field__header label {
    margin-bottom: 0;
}
.rsp-forgot-link {
    font-size: 12px;
    color: var(--rsp-indigo);
    text-decoration: none;
    font-weight: 600;
}
.rsp-forgot-link:hover {
    text-decoration: underline;
}
.rsp-field input[type="text"],
.rsp-field input[type="email"],
.rsp-field input[type="password"] {
    width: 100%;
    font-family: var(--rsp-font);
    font-size: 14px;
    padding: 11px 16px;
    border: 1.5px solid var(--rsp-border);
    border-radius: 10px;
    background: #fff;
    color: var(--rsp-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.rsp-field input:focus {
    border-color: var(--rsp-indigo);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}
.rsp-field input::placeholder {
    color: #cbd5e1;
}

/* Remember */
.rsp-remember {
    margin-bottom: 24px;
}
.rsp-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--rsp-text);
    cursor: pointer;
}
.rsp-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rsp-indigo);
}

/* Buttons */
.rsp-btn {
    display: inline-block;
    font-family: var(--rsp-font);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    font-size: 14px;
    padding: 12px 28px;
}
.rsp-btn:hover { transform: translateY(-1px); }
.rsp-btn:active { transform: translateY(0); }
.rsp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.rsp-btn--primary {
    background: linear-gradient(135deg, var(--rsp-indigo), var(--rsp-indigo-light));
    color: #fff;
    box-shadow: 0 3px 16px rgba(5,150,105,0.35);
}
.rsp-btn--full {
    width: 100%;
    text-align: center;
}

/* Error / Notice */
.rsp-login-error {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.18);
    color: var(--rsp-red);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.rsp-login-notice-msg {
    font-size: 13px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.rsp-login-notice-msg--info {
    background: rgba(5,150,105,0.06);
    border: 1px solid rgba(5,150,105,0.15);
    color: var(--rsp-indigo);
}

/* Divider */
.rsp-login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}
.rsp-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--rsp-border);
}
.rsp-login-divider span {
    background: #fff;
    padding: 0 16px;
    position: relative;
    font-size: 12px;
    color: var(--rsp-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Bottom links */
.rsp-login-signup,
.rsp-login-back {
    text-align: center;
    font-size: 14px;
    color: var(--rsp-muted);
}
.rsp-login-signup a,
.rsp-login-back a {
    color: var(--rsp-indigo);
    text-decoration: none;
    font-weight: 600;
}
.rsp-login-signup a:hover,
.rsp-login-back a:hover {
    text-decoration: underline;
}
.rsp-login-back {
    margin-top: 20px;
}

/* ================================================================== */
/*  LOADING SPINNER                                                    */
/* ================================================================== */

.rsp-btn--loading {
    position: relative;
    color: transparent !important;
}
.rsp-btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rsp-spin 0.6s linear infinite;
}
@keyframes rsp-spin {
    to { transform: rotate(360deg); }
}

/* ================================================================== */
/*  RESPONSIVE                                                         */
/* ================================================================== */

@media (max-width: 900px) {
    .rsp-login-wrapper { flex-direction: column; }
    .rsp-login-brand {
        width: 100%;
        padding: 32px 28px;
        min-height: auto;
    }
    .rsp-login-brand__content h1 { font-size: 26px; }
    .rsp-login-brand__features { display: none; }
    .rsp-login-brand__logo { margin-bottom: 24px; }
    .rsp-login-brand__content { justify-content: flex-start; }
    .rsp-login-brand__content > p { margin-bottom: 0; }
    .rsp-login-brand__footer { display: none; }
    .rsp-login-form-panel {
        width: 100%;
        padding: 32px 24px;
    }
}
