:root {
    --samu-red:      #CC0000;
    --samu-red-dark: #9B0000;
    --samu-red-light:#FF3333;
    --samu-navy:     #0A1628;
    --samu-blue:     #0D2B5E;
    --samu-blue-mid: #1A4080;
    --samu-white:    #FFFFFF;
    --samu-gray:     #F4F6FA;
    --samu-border:   #E2E8F0;
    --samu-text:     #2D3748;
    --samu-muted:    #718096;
    --samu-green:    #00875A;
    --samu-green-bg: #E3F9F0;
}

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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: var(--samu-gray);
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: linear-gradient(90deg, var(--samu-navy) 0%, var(--samu-blue) 100%);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--samu-red), var(--samu-red-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.brand-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.top-bar-right {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

.top-bar-right a {
    color: var(--samu-red-light);
    text-decoration: none;
    font-weight: 600;
}

.page-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem 3rem;
}

.register-card {
    width: 100%;
    max-width: 680px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header-pigu {
    background: linear-gradient(135deg, var(--samu-navy) 0%, var(--samu-blue) 100%);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.card-header-pigu::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
}

.header-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.card-body-pigu {
    padding: 2rem 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pigu-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--samu-text);
    margin-bottom: 0.45rem;
}

.pigu-field label span {
    color: var(--samu-red);
    margin-left: 2px;
}

.field-wrap {
    position: relative;
}

.field-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0AEC0;
    font-size: 0.85rem;
}

.field-wrap input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--samu-border);
    border-radius: 9px;
    font-size: 0.86rem;
    color: var(--samu-text);
    background: white;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.field-wrap input:focus {
    border-color: var(--samu-red);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.07);
}

.field-hint {
    font-size: 0.72rem;
    color: var(--samu-muted);
    margin-top: 4px;
}

.field-error {
    font-size: 0.72rem;
    color: var(--samu-red);
    margin-top: 4px;
    display: none;
}

.pwd-strength {
    margin-top: 6px;
}

.strength-bar {
    height: 3px;
    border-radius: 3px;
    background: var(--samu-border);
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s;
}

.strength-text {
    font-size: 0.7rem;
    color: var(--samu-muted);
}

.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--samu-red), var(--samu-red-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(204,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(204,0,0,0.35);
}

.alert-pigu {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.83rem;
    margin-bottom: 1rem;
    display: none;
}

.alert-pigu.error {
    background: rgba(204,0,0,0.06);
    border-left: 4px solid var(--samu-red);
    color: var(--samu-red-dark);
    display: block;
}

.alert-pigu.success {
    background: rgba(0,135,90,0.06);
    border-left: 4px solid var(--samu-green);
    color: var(--samu-green);
    display: block;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .card-body-pigu { padding: 1.5rem; }
}