/* Premium Authentication Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #e5484d;
    --primary-hover: #c93b40;
    --primary-light: #fef2f2;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --error: #ef4444;
    --success: #10b981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

body {
    background-color: #f1f5f9;
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    body {
        display: block;
        align-items: unset;
        justify-content: unset;
    }
}

/* Auth Page Wrapper */
.sp-auth-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    width: 100%;
    max-width: 1100px;
    height: auto;
    min-height: 680px;
    background: #ffffff;
    margin: 40px 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

/* Left Illustration Panel */
.sp-auth-banner {
    background: radial-gradient(circle at 0% 0%, #1e293b 0%, #020617 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px;
    color: #ffffff;
    overflow: hidden;
}

.sp-auth-banner::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(229, 72, 77, 0.15) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.sp-auth-banner::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.sp-banner-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 10;
    transition: transform 0.2s;
}

.sp-banner-logo:hover {
    transform: scale(1.02);
}

.sp-banner-logo img {
    height: 38px;
    object-fit: contain;
}

.sp-banner-content {
    z-index: 10;
    margin: 40px 0;
}

.sp-banner-content h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.sp-banner-content h1 span {
    background: linear-gradient(135deg, #ff6b6b 0%, #e5484d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-banner-content p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 420px;
    font-weight: 400;
}

/* Glassmorphism setup card in Banner */
.sp-setup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sp-setup-card i {
    font-size: 24px;
    color: var(--primary);
    background: rgba(229, 72, 77, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-setup-card-info h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #f8fafc;
}

.sp-setup-card-info p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.sp-banner-footer {
    z-index: 10;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

/* Right Panel: Form Box */
.sp-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: #ffffff;
}

.sp-auth-form-container {
    width: 100%;
    max-width: 380px;
    animation: authFadeUp 0.4s ease;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.sp-auth-header {
    margin-bottom: 30px;
}

.sp-auth-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.sp-auth-header p {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.sp-auth-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.sp-auth-header a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Form Styles */
.sp-form-group {
    margin-bottom: 20px;
}

.sp-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sp-input-wrapper i:not(.sp-eye-toggle) {
    position: absolute;
    left: 16px;
    color: var(--muted);
    font-size: 15px;
    pointer-events: none;
}

.sp-eye-toggle {
    position: absolute;
    right: 16px;
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s;
}

.sp-eye-toggle:hover {
    color: var(--dark);
}

.sp-form-input {
    width: 100%;
    height: 48px;
    padding: 10px 16px 10px 44px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.sp-form-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.08);
}

.sp-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13.5px;
}

.sp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
}

.sp-checkbox-label input {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.sp-forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.sp-forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.sp-btn-submit {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(229, 72, 77, 0.2);
}

.sp-btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(229, 72, 77, 0.25);
}

.sp-btn-submit:active {
    transform: translateY(0);
}

/* Social Logins */
.sp-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-social-divider::before, .sp-social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.sp-social-divider::before {
    margin-right: 12px;
}

.sp-social-divider::after {
    margin-left: 12px;
}

.sp-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sp-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.sp-social-btn i {
    font-size: 16px;
}

/* Validation Errors */
.sp-error-msg {
    color: var(--error);
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .sp-auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    .sp-auth-banner {
        display: none;
    }
    .sp-auth-form-panel {
        padding: 0;
        min-height: 100vh;
        align-items: flex-start;
        background: #f1f5f9;
    }
    .sp-auth-form-container {
        width: 100%;
        max-width: 100%;
        padding: 50px 24px 40px;
        background: #fff;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .sp-auth-form-container {
        padding: 40px 20px 32px;
    }
    .sp-auth-header h2 {
        font-size: 24px;
    }
    .sp-auth-header p {
        font-size: 13px;
    }
    .sp-form-input {
        height: 46px;
        font-size: 14px;
    }
    .sp-btn-submit {
        height: 46px;
        font-size: 14px;
    }
    .sp-social-grid {
        gap: 10px;
    }
}
