/* ========================================
   GLOBAL / BODY
   ======================================== */
body {
    margin: 0;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Background sama konsep dengan login: foto + overlay gelap */
    background:
        radial-gradient(circle at top, rgba(15, 23, 42, 0.75), rgba(3, 7, 18, 0.98)),
        url('../PICTURESET/SPREGISTERASI.jpg') center/cover no-repeat;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9f9f9;
}

/* ========================================
   OVERLAY FULLSCREEN
   ======================================== */
.overlay {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* ========================================
   REGISTER CARD
   ======================================== */
.register-box {
    display: flex;
    width: min(780px, 100%);
    min-height: 460px;

    /* Glass + dark + brown like login */
    background: radial-gradient(circle at top, rgba(23, 23, 23, 0.96), rgba(12, 10, 9, 0.96));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 22px;
    padding: 28px 30px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(94, 76, 62, 0.5);
    position: relative;
    overflow: hidden;
}

/* garis halus dekoratif di pinggir card */
.register-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05),
        transparent 35%,
        rgba(176, 132, 74, 0.4),
        transparent 70%
    );
    opacity: 0.35;
    pointer-events: none;
}

.register-box > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   LEFT SIDE (LOGO + TEKS)
   ======================================== */
.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding-right: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: #f6f1e8;
}

.left .logo {
    width: 260px;
    max-width: 100%;
    margin-bottom: 18px;
}

.left h2 {
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.left p {
    font-size: 0.9rem;
    color: #cfc4b7;
    line-height: 1.6;
    max-width: 260px;
}

/* ========================================
   RIGHT SIDE (FORM)
   ======================================== */
.right {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 32px;
    color: #fefefe;
}

.form-title {
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fdf6ea;
    text-align: center;
}

.right form {
    width: 100%;
    max-width: 340px;
}

/* ========================================
   INPUT & TEXTAREA – SAMA RASA LOGIN
   ======================================== */
.right input,
.right textarea {
    width: 100%;
    padding: 10px 13px;
    margin-bottom: 10px;

    border-radius: 999px;
    border: 1px solid rgba(75, 59, 45, 0.9);
    box-sizing: border-box;

    background: radial-gradient(circle at top, #18120d, #0f0b09);
    color: #f9f9f9;
    font-size: 0.9rem;

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.12s ease;
}

.right textarea {
    resize: none;
    min-height: 90px;
    border-radius: 18px;
}

.right input::placeholder,
.right textarea::placeholder {
    color: #8b8176;
    font-size: 0.85rem;
}

.right input:focus,
.right textarea:focus {
    border-color: #b0844a;
    background: radial-gradient(circle at top, #22160e, #100b08);
    box-shadow:
        0 0 0 1px rgba(176, 132, 74, 0.55),
        0 0 0 4px rgba(176, 132, 74, 0.18);
    transform: translateY(-1px);
}

/* ========================================
   BUTTON SUBMIT – MIRIP .btn-login
   ======================================== */
.right button {
    width: 100%;
    max-width: 220px;
    padding: 11px;
    margin-top: 12px;

    border-radius: 999px;
    border: none;
    cursor: pointer;

    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    background: linear-gradient(135deg, #b0844a, #8b5e34);
    color: #0b0704;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(43, 27, 18, 0.9);

    transition:
        transform 0.12s ease,
        box-shadow 0.18s ease,
        filter 0.2s ease;
}

.right button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(67, 40, 25, 0.9);
}

.right button:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(67, 40, 25, 0.9);
}

/* ========================================
   TEKS KECIL / LINK DI BAWAH FORM (JIKA ADA)
   ======================================== */
.right .helper-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #cec6ba;
    text-align: center;
}

.right .helper-text a {
    color: #f5d0a2;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.right .helper-text a:hover {
    color: #ffe3b8;
    text-shadow: 0 0 10px rgba(250, 204, 145, 0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .register-box {
        flex-direction: column;
        padding: 22px 20px;
        border-radius: 18px;
    }

    .left {
        padding-right: 0;
        padding-bottom: 18px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: 16px;
    }

    .right {
        padding-left: 0;
    }

    .left .logo {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .register-box {
        padding: 20px 16px;
    }

    .left h2 {
        font-size: 1.05rem;
    }

    .form-title {
        font-size: 1.1rem;
    }

    .right button {
        max-width: 100%;
    }
}
