/* Professional Auth Pages - Social Platform */
:root {
    --auth-bg: #0a0a0a;
    --auth-card: #141414;
    --auth-border: #2a2a2a;
    --auth-text: #ffffff;
    --auth-muted: #9a9a9a;
    --auth-accent: #00d4aa;
    --auth-accent-hover: #00b894;
    --auth-error: #ff4757;
    --auth-success: #2ed573;
    --auth-input-bg: #1a1a1a;
    --auth-radius: 14px;
}

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

body.sp-auth-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    line-height: 1.5;
}

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

.sp-auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.sp-auth-brand .logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--auth-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-auth-brand .tagline {
    color: var(--auth-muted);
    font-size: 14px;
    margin-top: 6px;
}

.sp-auth-card {
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.sp-auth-card h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.sp-auth-card .subtitle {
    text-align: center;
    color: var(--auth-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.sp-auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}

.sp-auth-alert.error {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
    color: #ff6b7a;
}

.sp-auth-alert.success {
    background: rgba(46, 213, 115, 0.12);
    border: 1px solid rgba(46, 213, 115, 0.35);
    color: #2ed573;
}

.sp-auth-field {
    margin-bottom: 16px;
}

.sp-auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ddd;
}

.sp-auth-field input {
    width: 100%;
    padding: 13px 14px;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    color: var(--auth-text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-auth-field input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.sp-auth-field input::placeholder {
    color: #666;
}

.sp-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 13px;
}

.sp-auth-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-muted);
    cursor: pointer;
}

.sp-auth-row a {
    color: var(--auth-accent);
    text-decoration: none;
}

.sp-auth-row a:hover {
    text-decoration: underline;
}

.sp-auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--auth-accent);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.sp-auth-btn:hover {
    background: var(--auth-accent-hover);
}

.sp-auth-btn:active {
    transform: scale(0.98);
}

.sp-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--auth-muted);
    font-size: 12px;
}

.sp-auth-divider::before,
.sp-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.sp-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--auth-muted);
}

.sp-auth-footer a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 600;
}

.sp-auth-footer a:hover {
    text-decoration: underline;
}

.sp-auth-back {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--auth-muted);
    font-size: 13px;
    text-decoration: none;
}

.sp-auth-back:hover {
    color: #fff;
}

/* Password strength hint */
.sp-auth-hint {
    font-size: 12px;
    color: var(--auth-muted);
    margin-top: 4px;
}

@media (max-width: 480px) {
    .sp-auth-card {
        padding: 24px 18px;
    }
}
