/* style.css - Modern MPLS SMPN 45 Surabaya 2026 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* Animasi Bola Latar Belakang (Floating Orbs) */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 8s ease-in-out infinite alternate;
    z-index: 0;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: #f093fb;
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: #4facfe;
    bottom: -150px;
    right: -150px;
    animation-delay: 2s;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: #43e97b;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
    opacity: 0.2;
}

@keyframes floatOrb {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.2); }
}

/* Card Utama */
.card-glass {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 40px 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Sekolah */
.badge-mpls {
    display: inline-block;
    background: linear-gradient(90deg, #f7971e, #ffd200);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.school-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}
.school-name span {
    color: #ffd700;
}
.sub-title {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
    border-left: 3px solid #ffd700;
    padding-left: 12px;
}

/* ========== FORM INPUT ========== */
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    z-index: 2;
}
.input-icon input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}
.input-icon input::placeholder {
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}
.input-icon input:focus {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

/* ========== STYLE DROPDOWN ========== */
.input-icon select {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #1a1a2e !important;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.input-icon select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.input-icon select option {
    background: white !important;
    color: #1a1a2e !important;
    padding: 12px;
    font-size: 14px;
}

.input-icon select option:hover {
    background: #f7971e !important;
    color: white !important;
}

.input-icon select option:checked {
    background: #f7971e !important;
    color: white !important;
}

.input-icon select:invalid {
    color: #999 !important;
}

/* Icon panah dropdown */
.input-icon .fa-chevron-down {
    position: absolute;
    right: 18px;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
    color: #f7971e !important;
    font-size: 14px;
    pointer-events: none;
    z-index: 3;
}

/* ========== ALERT / PESAN ========== */
.alert-error {
    background: rgba(255, 0, 0, 0.15);
    border-left: 4px solid #ff4444;
    padding: 14px 18px;
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 18px;
    animation: shake 0.5s ease-in-out;
    backdrop-filter: blur(10px);
}

.alert-error small {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
}

.alert-error i {
    margin-right: 8px;
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Alert Sukses */
.alert-success {
    background: rgba(0, 255, 100, 0.1);
    border-left: 4px solid #00ff88;
    padding: 14px 18px;
    border-radius: 12px;
    color: #00ff88;
    font-size: 14px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.alert-success i {
    margin-right: 8px;
    font-size: 16px;
}

/* ========== TOMBOL ========== */
.btn-gradient {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    border: none;
    border-radius: 16px;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}
.btn-gradient:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(247, 151, 30, 0.4);
}
.btn-gradient i {
    font-size: 20px;
}

/* Tombol Zoom di halaman sukses */
.btn-zoom {
    background: linear-gradient(135deg, #0e6bff, #00d4ff);
    color: white;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    margin-top: 10px;
}
.btn-zoom:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(14, 107, 255, 0.5);
    color: white;
}
.btn-outline-logout {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 12px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: 0.3s;
    font-size: 14px;
    width: 100%;
    margin-top: 10px;
}
.btn-outline-logout:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Footer */
.footer-copyright {
    position: absolute;
    bottom: 25px;
    z-index: 10;
    color: rgba(255,255,255,0.25);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}
.footer-copyright strong {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* Notifikasi Sukses */
.success-icon {
    font-size: 70px;
    color: #43e97b;
    background: rgba(67, 233, 123, 0.15);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid rgba(67, 233, 123, 0.3);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.welcome-name {
    color: #ffd700;
    font-weight: 700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .card-glass { padding: 30px 20px; }
    .school-name { font-size: 20px; }
    .orb-1, .orb-2 { width: 200px; height: 200px; }
    .input-icon select { font-size: 14px; padding: 14px 16px 14px 45px; }
    .input-icon input { font-size: 14px; padding: 14px 16px 14px 45px; }
    .alert-error { font-size: 13px; padding: 12px 14px; }
}