:root {
    --sp-primary: #e6007a;
    --sp-primary-strong: #c5006a;
    --sp-surface: #ffffff;
    --sp-border: #e5e7eb;
    --sp-muted: #6b7280;
    --sp-ink: #111827;
    --sp-bg: #f6f6f6;
}

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

body.sp-body {
    margin: 0;
    min-height: 100vh;
    background: var(--sp-bg);
    color: var(--sp-ink);
    font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sp-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.sp-auth-grid {
    width: 100%;
    max-width: 1260px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 16px;
}

.sp-panel {
    border-radius: 12px;
    overflow: hidden;
    background: var(--sp-surface);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08),
        0 4px 10px rgba(15, 23, 42, 0.05);
}

.sp-panel--left {
    padding: 32px 32px 28px;
    min-height: 680px;
}

.sp-left-inner {
    max-width: 560px;
    margin: 0 auto;
}

.sp-armstrong-logo {
    width: 220px;
    max-width: 100%;
    margin-bottom: 44px;
}

.sp-card {
    background: var(--sp-surface);
    border-radius: 12px;
    padding: 0;
    border: none;
    box-shadow: none;
}

.sp-card-header {
    margin-bottom: 18px;
}

.sp-card-title {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
}

.sp-card-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

.sp-form .form-label {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.sp-form .form-label span {
    color: #ef4444;
}

.sp-input-wrap {
    position: relative;
}

.sp-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.sp-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px 12px 38px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-input:focus {
    border-color: #a1a5aa;
    box-shadow: 0 0 0 2px rgba(230, 0, 122, 0.14);
    outline: none;
}

.sp-input::placeholder {
    color: #9ca3af;
}

.sp-btn-primary {
    background: linear-gradient(90deg, var(--sp-primary) 0%, var(--sp-primary-strong) 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 13px 16px;
    border-radius: 24px;
    box-shadow: inset 0 -4px 0 0 rgba(10, 13, 18, 0.2);
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.sp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(230, 0, 122, 0.28);
    color: #ffffff;
}

.sp-meta {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 16px;
}

.sp-meta a {
    color: #6b7280;
    text-decoration: underline;
}

.sp-panel--right {
    position: relative;
border-radius: 16px;
background: #800046;

min-height: 680px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 32px;
    background-image:
        url("/assets/img/login_bg-std.png"),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0) 100%);
    background-repeat: no-repeat, no-repeat;
    background-size: contain, cover;
    background-position: bottom center, center;
}

.sp-hero-copy {
    max-width: 520px;
    text-align: center;
    color: #f8fafc;
    margin-top: 12px;
}

.sp-hero-copy h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
}

.sp-hero-copy p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.9);
}

.sp-btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #111827;
    font-weight: 600;
    border-radius: 10px;
    padding: 9px 12px;
}

.sp-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid;
}

.sp-alert-danger {
    background: #fef2f2;
    border-color: #fecdd3;
    color: #b91c1c;
}

.sp-alert-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #15803d;
}

.sp-hint {
    color: var(--sp-muted);
    font-size: 0.9rem;
}

.sp-otp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 12px;
}

.sp-otp-input {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 14px 10px;
}

.sp-otp-input:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 122, 0.14);
    outline: none;
}

.sp-modal .modal-content {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 60px rgba(11, 33, 67, 0.18);
}

.sp-modal .modal-body {
    padding: 26px;
    text-align: center;
}

.sp-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.sp-modal-icon--success {
    background: #ecfdf3;
    color: #16a34a;
}

.sp-modal-icon--danger {
    background: #fef2f2;
    color: #dc2626;
}

@media (max-width: 1100px) {
    .sp-auth-grid {
        grid-template-columns: 1fr;
    }

    .sp-panel--right {
        min-height: 520px;
    }
}

@media (max-width: 720px) {
    .sp-panel--left {
        padding: 24px 18px 22px;
    }

    .sp-armstrong-logo {
        margin-bottom: 32px;
    }

    .sp-panel--right {
        padding: 40px 20px;
        border-radius: 14px;
    }
}
