/* Import Font Keren dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Reset Dasar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /* Background Gradasi Biru Elegan */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

/* --- Container Utama --- */
.container {
    width: 100%;
    max-width: 500px;
    /* Lebar maksimal agar tidak terlalu lebar di PC */
    text-align: center;
}

/* --- Header Sekolah (Di luar kartu) --- */
.logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.container>h3 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.container>h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- Kartu Form (Kotak Putih) --- */
.card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Hiasan garis atas pada kartu */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.card h2 {
    text-align: center;
    color: #1e3c72;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.card>p {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* --- Sub-Judul Bagian (Data Akun, Data Diri) --- */
form h3 {
    color: #2a5298;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0f2f5;
    font-weight: 600;
}

/* --- Input Groups --- */
.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

/* Styling Input & Select */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

/* Efek saat diklik/fokus */
input:focus,
select:focus {
    border-color: #2a5298;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1);
}

/* Styling File Input Info */
.file-upload-info {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* --- Checkbox Container --- */
.input-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #2a5298;
    /* Warna checkbox */
}

/* --- Tombol Utama --- */
.btn.primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(42, 82, 152, 0.2);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(42, 82, 152, 0.3);
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.btn.primary:active {
    transform: translateY(0);
}

/* --- Footer Link --- */
.footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-link a {
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
}

.footer-link a:hover {
    text-decoration: underline;
}

/* --- Responsif untuk HP --- */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .card {
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.3rem;
    }
}

/* --- Password Visibility Toggle --- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #1e3c72;
}

.input-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-group input::-webkit-outer-spin-button,
.input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}