/* ============================================
   PENDAFTARAN PAGE - Modern Registration Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body.pendaftaran-page {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---- Layout Container ---- */
.pendaftaran-container {
    display: flex;
    flex-direction: row-reverse; /* Form on Right, Image on Left */
    width: 100%;
    min-height: 100vh;
}

/* ---- Left Side: Form (Right visually) ---- */
.pendaftaran-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
    overflow-y: auto;
    max-width: 40%;
    background: #ffffff;
}

.pendaftaran-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.pendaftaran-logo img {
    height: 42px;
    width: auto;
}

.pendaftaran-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* ---- Form Content ---- */
.pendaftaran-form-wrapper {
    max-width: 85%;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pendaftaran-title {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.pendaftaran-subtitle {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

/* ---- Google Login Button ---- */
.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 24px;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    background-color: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-google-login:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-google-login img {
    width: 20px;
    height: 20px;
}

/* ---- Divider ---- */
.pendaftaran-divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    gap: 16px;
}

.pendaftaran-divider::before,
.pendaftaran-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.pendaftaran-divider span {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    white-space: nowrap;
}

/* ---- Form Fields ---- */
.form-group-pendaftaran {
    margin-bottom: 24px;
}

.form-group-pendaftaran label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    margin-left: 4px;
}

.form-group-pendaftaran label .required-mark {
    color: #ef4444;
    margin-left: 4px;
}

.form-group-pendaftaran .form-input {
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 50px; /* Pill shape like reference */
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none;
}

.form-group-pendaftaran .form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-group-pendaftaran .form-input:focus {
    background-color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.form-group-pendaftaran .form-input:hover:not(:focus) {
    border-color: #d1d5db;
    background-color: #ffffff;
}

/* Password input with toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #6b7280;
}

/* ---- Checkbox / Radio ---- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    margin-top: 4px;
}

.checkbox-group input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: #0ea5e9;
    cursor: pointer;
    flex-shrink: 0;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
}

.checkbox-group label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group label a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.checkbox-group label a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* ---- Submit Button ---- */
.btn-pendaftaran-submit {
    width: 100%;
    padding: 16px 28px;
    background: #0f172a; /* Black button like reference */
    color: #ffffff;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.btn-pendaftaran-submit:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.btn-pendaftaran-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

/* ---- Login Link ---- */
.pendaftaran-login-link {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: #6b7280;
}

.pendaftaran-login-link a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pendaftaran-login-link a:hover {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---- Right Side: Hero Image (Left visually, full height) ---- */
.pendaftaran-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    max-width: 60%;
    margin: 0;
    border-radius: 0;
}

.pendaftaran-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pendaftaran-hero-overlay {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    background: rgba(255, 255, 255, 0.15); /* Glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pendaftaran-hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pendaftaran-hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 100%;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.pendaftaran-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

.hero-badge i {
    font-size: 15px;
    color: #20df7f;
}

/* ---- Alert Messages ---- */
.alert-pendaftaran {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-pendaftaran.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-pendaftaran.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---- Loading Spinner ---- */
.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* ---- Fade In Animation ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pendaftaran-form-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.pendaftaran-hero-overlay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .pendaftaran-left {
        padding: 48px 48px;
        max-width: 45%;
    }

    .pendaftaran-right {
        max-width: 55%;
    }

    .pendaftaran-hero-overlay {
        bottom: 24px;
        left: 24px;
        right: 24px;
        padding: 24px;
    }

    .pendaftaran-hero-title {
        font-size: 20px;
    }

    .pendaftaran-hero-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .hero-badge {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .pendaftaran-container {
        flex-direction: column;
        min-height: auto;
    }

    .pendaftaran-right {
        max-width: 100%;
        margin: 0;
        min-height: 320px;
        max-height: 360px;
        border-radius: 0;
        order: -1;
    }

    .pendaftaran-left {
        padding: 40px 48px;
        max-width: 100%;
        order: 1;
    }

    .pendaftaran-form-wrapper {
        max-width: 540px;
        margin: 0 auto;
    }

    .pendaftaran-hero-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        border-radius: 16px;
        padding: 24px;
    }

    .pendaftaran-hero-title {
        font-size: 20px;
    }

    .pendaftaran-hero-badges {
        gap: 8px;
    }

    .hero-badge {
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* Mobile — Sembunyikan video, tampilkan form full screen seperti referensi */
@media (max-width: 768px) {
    body.pendaftaran-page {
        background: #ffffff;
    }

    .pendaftaran-container {
        flex-direction: column;
        min-height: 100vh;
    }

    /* Sembunyikan panel video pada mobile */
    .pendaftaran-right {
        display: none;
    }

    .pendaftaran-left {
        max-width: 100%;
        padding: 40px 28px 32px;
        min-height: 100vh;
        justify-content: flex-start;
    }

    .pendaftaran-logo {
        margin-bottom: 36px;
        gap: 10px;
    }

    .pendaftaran-logo img {
        height: 36px;
    }

    .pendaftaran-logo-text {
        font-size: 13px;
        line-height: 1.3;
    }

    .pendaftaran-form-wrapper {
        max-width: 100%;
    }

    .pendaftaran-title {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 8px;
        letter-spacing: -0.03em;
    }

    .pendaftaran-subtitle {
        font-size: 14px;
        color: #6b7280;
        margin-bottom: 32px;
        line-height: 1.5;
    }

    .form-group-pendaftaran {
        margin-bottom: 20px;
    }

    .form-group-pendaftaran label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
        margin-left: 4px;
    }

    .form-group-pendaftaran .form-input {
        padding: 14px 20px;
        border-radius: 50px;
        font-size: 14px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
    }

    .form-group-pendaftaran .form-input:focus {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    }

    .btn-pendaftaran-submit {
        padding: 16px 28px;
        font-size: 15px;
        border-radius: 50px;
        background: #0f172a;
        margin-top: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .btn-pendaftaran-submit:hover {
        background: #1e293b;
    }

    .pendaftaran-login-link {
        margin-top: 24px;
        font-size: 14px;
        color: #6b7280;
    }

    .pendaftaran-login-link a {
        color: #0ea5e9;
        font-weight: 600;
    }

    .pendaftaran-divider {
        margin: 24px 0;
    }

    .btn-google-login {
        padding: 14px 24px;
        border-radius: 50px;
        font-size: 14px;
        border: 1px solid #e5e7eb;
    }

    /* Alert */
    .alert-pendaftaran {
        border-radius: 12px;
        font-size: 13px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .pendaftaran-left {
        padding: 28px 20px 24px;
    }

    .pendaftaran-logo {
        margin-bottom: 28px;
    }

    .pendaftaran-logo img {
        height: 32px;
    }

    .pendaftaran-logo-text {
        font-size: 12px;
    }

    .pendaftaran-title {
        font-size: 24px;
    }

    .pendaftaran-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .form-group-pendaftaran {
        margin-bottom: 16px;
    }

    .form-group-pendaftaran .form-input {
        padding: 12px 18px;
        font-size: 13px;
    }

    .btn-pendaftaran-submit {
        padding: 14px 24px;
        font-size: 14px;
    }

    .btn-google-login {
        padding: 12px 20px;
        font-size: 13px;
    }

    .pendaftaran-login-link {
        margin-top: 20px;
        font-size: 13px;
    }
}

/* ---- Select Dropdown ---- */
.form-group-pendaftaran .form-select-custom, select.form-input {
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 50px; /* Pill shape */
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.25s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%239ca3af'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 44px;
    box-shadow: none;
}

.form-group-pendaftaran .form-select-custom:focus, select.form-input:focus {
    background-color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.form-group-pendaftaran .form-select-custom:hover:not(:focus), select.form-input:hover:not(:focus) {
    border-color: #d1d5db;
    background-color: #ffffff;
}

/* ---- Desktop Viewport Optimization (Fixed Video, Scrollable Form) ---- */
@media (min-width: 1025px) {
    .pendaftaran-container {
        height: 100vh !important;
        overflow: hidden !important;
    }
    .pendaftaran-left {
        height: 100vh !important;
        overflow-y: auto !important;
    }
    .pendaftaran-right {
        height: 100vh !important;
        overflow: hidden !important;
        position: relative !important;
    }
}