body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #60a5fa);

    display: flex;
    justify-content: center;

    padding: 60px 20px; /* ini yang bikin tidak mepet */
}

/* LOGO WRAPPER */
.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    animation: floatLogo 6s ease-in-out infinite;
}

/* GLOW EFFECT */
.logo-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
    filter: blur(35px);
    z-index: 0;
}

/* LOGO IMAGE */
.logo-wrapper img {
    width: 200px;
    position: relative;
    z-index: 2;
}

.logo-wrapper:hover img {
    transform: scale(1.05);
    transition: 0.4s ease;
}

.logo-wrapper {
    display: inline-block; /* agar bisa diberi transform */
    text-decoration: none; /* hilangkan underline */
    cursor: pointer;
}

/* DIVIDER */
.header-divider {
    width: 60px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    opacity: 0.8;
}

/* FLOAT ANIMATION */
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.register-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.register-card {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    color: white;
}

.register-title span {
    background: linear-gradient(90deg, #fff, #c7d2fe);

    -webkit-background-clip: text; /* Chrome, Safari */
    background-clip: text;         /* Standard */

    -webkit-text-fill-color: transparent; /* Required for WebKit */
    color: transparent; /* Fallback */
}

.role-selection {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
}

.role-card {
    flex: 1;
    margin: 0 5px;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    transition: 0.3s ease;
}

.role-card:hover,
.role-card.active {
    background: white;
    color: #2563eb;
    transform: translateY(-5px);
}

.role-card i {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 14px;
    color: #64748b;
    transition: 0.3s;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 11px;
    background: white;
    padding: 2px 8px;
    border-radius: 8px;
    color: #2563eb;
}

.role-fields {
    display: none;
}

.register-btn {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg,#2563eb,#4f46e5);
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.register-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.password-strength {
    font-size: 12px;
}

/* ===== PASSWORD FIELD FIX ===== */

.form-group.position-relative input {
    padding-right: 45px; /* beri ruang untuk icon */
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    font-size: 18px;
    transition: 0.3s ease;
    background: rgba(255,255,255,0.6);
    padding: 6px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.toggle-password:hover {
    color: #2563eb;
}

/* ===== KELAS WRAPPER ===== */
.kelas-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.kelas-wrapper .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Styling select agar konsisten dengan input */
.form-group select {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.9);
    appearance: none;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;          /* Samakan dengan input */
    color: #64748b;           /* Warna seperti placeholder */

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
}

/* Khusus number agar konsisten */
.form-group input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.form-group select:valid {
    color: #111827; /* warna teks normal setelah dipilih */
}

/* Responsive (mobile turun ke bawah) */
@media (max-width: 576px) {
    .kelas-wrapper {
        flex-direction: column;
    }
}

