/* Transisi Antar Page */
body.fade-in {
    opacity: 1;
    transform: none;
    animation: fadeInSimple 0.4s ease;
  }
  body.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  body.slide-out {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  body.scale-out {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  body.trans-enter {
    opacity: 0;
  }
  body.trans-enter-active {
    opacity: 1;
    transition: opacity 0.4s ease;
  }
  @keyframes fadeInSimple {
    from {
      opacity: 0;
      filter: blur(8px);
    }
    to {
      opacity: 1;
      filter: blur(0);
    }
  }

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
}

header {
    background: linear-gradient(90deg, #181c24 0%, #232733 60%, #3e4a63 100%);
    color: #fff;
    padding: 1.8rem 0 1.2rem 0;
    text-align: center;
    letter-spacing: 2px;
    box-shadow: 0 2px 12px rgba(30,30,30,0.10);
    position: relative;
    z-index: 2;
}

header h1 {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    background: linear-gradient(90deg, #fff 60%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-noisecore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0.2rem;
    user-select: none;
}

.logo-noisecore svg {
    display: inline-block;
    background: #fff0;
}

.logo-noisecore .logo-text {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    background: linear-gradient(90deg, #fff 60%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Segoe UI', Arial, sans-serif;
}


nav {
    background: #232733;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: background 0.2s;
}

nav a.active,
nav a:hover {
    background: #3e4a63;
}

#menu-toggle {
    display: none;
    background: #232733;
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    margin: 1rem auto 0.5rem auto;
    border-radius: 8px;
    cursor: pointer;
    width: 90%;
    max-width: 400px;
}

/* Membership Form */
.membership-section {
    background: #fff;
    max-width: 430px;
    margin: 2.5rem auto 2rem auto;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 22px;
    box-shadow: 0 2px 12px rgba(30,30,30,0.10);
}

.membership-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #232733;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1.3rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #232733;
}

.form-group label span {
    color: #ff6a00;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="password"] {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #3e4a63;
    background: #f2f4f8;
    color: #222;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus {
    border: 2px solid #3e4a63;
}

.gender-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.2rem;
}

.gender-options label {
    font-weight: 400;
    color: #222;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-group label {
    font-weight: 400;
    color: #222;
}

.btn {
    display: block;
    width: 100%;
    background: #ff6a00;
    color: #fff;
    padding: 0.8rem 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(255,106,0,0.13);
}

.btn:hover {
    background: #e55a00;
}

#form-errors {
    color: #e55a00;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    min-height: 1.2em;
}

/* Footer */
footer {
    background: #181c24;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    margin-top: 2rem;
    border-radius: 16px 16px 0 0;
}

/* Responsive Design */
@media screen and (min-width: 1200px) {
    .membership-section {
        max-width: 480px;
        padding: 3rem 2.5rem 2.5rem 2.5rem;
        margin: 3.5rem auto 2.5rem auto;
    }
    .membership-section h2 {
        font-size: 1.7rem;
        margin-bottom: 2.2rem;
    }
    .form-group label,
    .form-group input,
    .btn {
        font-size: 1.08rem;
    }
    .form-group label {
        margin-bottom: 0.6rem;
    }
    #form-errors {
        font-size: 1.08rem;
    }
}
/* Untuk Ipad */
@media screen and (min-width: 700px) and (max-width: 1199px) {
    .membership-section {
        max-width: 95vw;
        padding: 2.2rem 2rem 2rem 2rem;
        margin: 2.5rem auto 2rem auto;
    }
    .membership-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    .form-group label,
    .form-group input,
    .btn {
        font-size: 1.03rem;
    }
    .form-group label {
        margin-bottom: 0.5rem;
    }
    #form-errors {
        font-size: 1.02rem;
    }
}
.form-group {
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.45rem;
    color: #232733;
    line-height: 1.3;
    letter-spacing: 0.01em;
    word-break: break-word;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="password"] {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #3e4a63;
    background: #f2f4f8;
    color: #222;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    margin-bottom: 0.1rem;
    box-sizing: border-box;
    width: 100%;
}

.gender-options {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
}

.gender-options label {
    font-weight: 400;
    color: #222;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.2;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-group label {
    font-weight: 400;
    color: #222;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}
.btn {
    display: block;
    width: 100%;
    background: #ff6a00;
    color: #fff;
    padding: 0.8rem 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(255,106,0,0.13);
    letter-spacing: 0.02em;
    word-break: break-word;
}
#form-errors {
    color: #e55a00;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    min-height: 1.2em;
    word-break: break-word;
}
/* Untuk Hengpong */
@media screen and (max-width: 699px) {
    header {
        font-size: 1.1rem;
        padding: 1rem 0;
    }
    .membership-section {
        padding: 1rem 0.5rem;
        max-width: 99vw;
        margin: 1.2rem 0 1.2rem 0;
        border-radius: 14px;
        box-shadow: 0 1px 6px rgba(30,30,30,0.08);
    }
    .membership-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    .form-group {
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .form-group label {
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="date"],
    .form-group input[type="password"] {
        padding: 0.5rem 0.7rem;
        font-size: 1rem;
        border-radius: 7px;
        margin-bottom: 0.2rem;
    }
    .gender-options {
        gap: 0.7rem;
        flex-direction: row;
        justify-content: flex-start;
        margin-top: 0.2rem;
        margin-bottom: 0.2rem;
    }
    .gender-options label {
        font-size: 1rem;
        padding-right: 1rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    .checkbox-group label {
        font-size: 0.98rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .btn {
        font-size: 1rem;
        padding: 0.7rem 0;
        margin-top: 0.7rem;
        border-radius: 20px;
    }
    #form-errors {
        font-size: 0.95rem;
    }
    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        display: none;
    }
    nav.active {
        display: flex;
    }
    #menu-toggle {
        display: block;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
        font-size: 1rem;
        padding: 0.6rem 1rem;
        max-width: 95vw;
    }
    nav a {
        width: 90vw;
        text-align: center;
        padding: 0.7rem 0.5rem;
        font-size: 1rem;
        margin: 0.1rem 0;
    }
    footer {
        font-size: 0.95rem;
        padding: 0.7rem 0;
        border-radius: 12px 12px 0 0;
        margin-top: 1.2rem;
    }
    input[type="radio"], input[type="checkbox"] {
        width: 1.2em;
        height: 1.2em;
        accent-color: #ff6a00;
    }
}

@media (pointer: coarse) {
    .form-group input,
    .btn {
        min-height: 44px;
    }
}