* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container utama */
.main-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: flex;
    min-height: 480px;
    box-shadow: 0 8px 30px rgba(25, 118, 210, 0.25);
}

/* Panel kiri bergambar */
.left-panel {
    flex: 1;
    position: relative;
    background: url('/template/img/Login.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}
.left-panel .overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 101, 192, 0.6);
    backdrop-filter: blur(3px);
}
.school-info {
    z-index: 2;
    text-align: center;
    color: #fff;
}
.school-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-bottom: 15px;
}
.school-info h2 {
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 600;
}
.school-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* Panel kanan form */
.right-panel {
    flex: 1;
    padding: 50px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
.header-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.header-image {
    text-align: center;
    margin-bottom: 20px;
}
.header-logo {
    max-width: 100%;
    width: 400px;
    height: auto;
    object-fit: contain;
}

.user-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(25,118,210,0.3);
}
.title-section {
    margin-left: 15px;
}
.title-section h1 {
    font-size: 22px;
    color: #1565c0;
    margin: 0;
}
.title-section p {
    font-size: 13px;
    color: #1976d2;
}

/* Form login */
.login-title {
    font-size: 25px;
    color: #0d47a1;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 3px rgba(13, 71, 161, 0.2);
}
.welcome-message {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #bbdefb;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}
.form-group input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.15);
    background-color: #fff;
}
.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1976d2, #0d47a1);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25,118,210,0.3);
}

/* Responsif */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        max-width: 400px;
    }
    .left-panel {
        height: 180px;
    }
    .right-panel {
        padding: 35px 25px;
    }
}

/* Floating Alert */
.floating-alert-container {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
}

.floating-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 6px solid #dc2626;
    border-radius: 14px;
    padding: 18px 20px 20px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
    width: 90%;
    max-width: 420px;
    opacity: 0;
    transform: translateY(-40px) scale(0.98);
    animation: alertSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85);
    pointer-events: auto;
}

/* Mode sukses */
.floating-alert.success {
    border-left-color: #16a34a;
}
.floating-alert.success .alert-icon svg path {
    fill: #16a34a;
}

/* Mode error */
.floating-alert.error .alert-icon svg path {
    fill: #dc2626;
}

/* Ikon alert */
.alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Konten */
.alert-content {
    flex: 1;
}
.alert-title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    margin-bottom: 3px;
    letter-spacing: 0.2px;
}
.alert-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #374151;
}

/* Tombol close */
.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease, transform 0.2s ease;
}
.alert-close:hover {
    color: #111827;
    transform: rotate(90deg);
}

/* Progress bar */
.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 0 0 12px 12px;
    animation: progress 5s linear forwards;
}
.floating-alert.success .alert-progress {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* Animasi */
@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Efek shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.shake {
    animation: shake 0.3s ease-in-out;
}
