/* =====================================================
   daftar-style.css: CSS khusus daftar.html
===================================================== */

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== DASAR HALAMAN / RESET ===== */

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0f0d;
    color: white;
}

/* ===== NAVBAR ===== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 14, 11, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 22px;
    font-weight: 800;
}

.logo span {
    color: #2fae4a;
}

.links a {
    color: #ddd;
    text-decoration: none;
    margin-left: 28px;
    transition: 0.2s;
}

.links a:hover {
    color: #2fae4a;
}

/* ===== TOMBOL ===== */

.btn {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #2fae4a;
    color: #071009;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #45c25e;
}

/* ===== SECTION UMUM ===== */

section {
    padding: 90px 7%;
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    margin-bottom: 12px;
}

.section-title p {
    color: #929993;
}

/* ===== FORM PENDAFTARAN ===== */

.register {
    text-align: center;
}

.register h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.register p {
    color: #aeb6b0;
    margin-bottom: 30px;
}

.register.register-page {
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(5, 10, 7, 0.55),
            rgba(5, 10, 7, 0.92)
        ),
        radial-gradient(
            circle at center,
            #006400,
            #0b0f0d 65%
        );
}

/* Garis kotak tipis seperti grid blok Minecraft, senada dengan .hero di index.html */

.register.register-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(47, 174, 74, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 174, 74, 0.09) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
    mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
    pointer-events: none;
}

/* ===== KOMPONEN FORM ===== */

.register-form {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    background: #151c17;
    border: 1px solid #29332c;
    border-radius: 18px;
    padding: 40px 35px;
    text-align: left;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #b9c0bb;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: #0b100d;
    border: 1px solid #29332c;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    transition: 0.2s;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
    color: #5d6660;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #2fae4a;
    background: #0e1410;
}

.form-group input[type="text"]:invalid:not(:placeholder-shown),
.form-group input[type="email"]:invalid:not(:placeholder-shown) {
    border-color: #e35d5d;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #0b100d;
    border: 1px solid #29332c;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #b9c0bb;
    transition: 0.2s;
    min-width: 140px;
}

.radio-option:has(input:checked) {
    border-color: #2fae4a;
    color: #4cc464;
    background: rgba(47, 174, 74, 0.08);
}

.radio-option input[type="radio"] {
    accent-color: #2fae4a;
    width: 16px;
    height: 16px;
}

.register-form .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 6px;
}

.register-message {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
    color: #4cc464;
    opacity: 0;
    transform: translateY(-5px);
    transition: 0.25s;
}

.register-message.show {
    opacity: 1;
    transform: translateY(0);
}

.register-message.error {
    color: #e35d5d;
}

/* ===== SELECT & TEXTAREA ===== */

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: #0b100d;
    border: 1px solid #29332c;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: 0.2s;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2fae4a;
    background: #0e1410;
}

.form-group textarea::placeholder {
    color: #5d6660;
}

/* ===== FOOTER ===== */

footer {
    padding: 30px 7%;
    text-align: center;
    color: #666d68;
    border-top: 1px solid #1d241f;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 750px) {
    nav {
        padding: 16px 5%;
    }

    nav .links {
        display: none;
    }

    section {
        padding: 70px 5%;
    }

    .register h2 {
        font-size: 32px;
    }

    .register-form {
        padding: 30px 22px;
    }

    .radio-group {
        flex-direction: column;
    }
}

/* ===== STATUS PENDAFTARAN DITUTUP ===== */

.registration-closed {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 42px 35px;
    text-align: center;
    background: #151c17;
    border: 1px solid #29332c;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.registration-closed-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(227, 93, 93, 0.14);
    border: 1px solid rgba(227, 93, 93, 0.35);
    color: #e35d5d;
    font-size: 28px;
    font-weight: 800;
}

.registration-closed h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #e35d5d;
}

.registration-closed p {
    margin: 0;
    color: #aeb6b0;
    line-height: 1.7;
}

.registration-closed.registration-error h3 {
    color: #f0b43c;
}

.registration-closed.registration-error .registration-closed-icon {
    background: rgba(240, 180, 60, 0.14);
    border-color: rgba(240, 180, 60, 0.35);
    color: #f0b43c;
}
