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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: flex;
    min-height: 550px;
}

/* Left Side - Branding */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-left::before,
.login-left::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-left::before {
    width: 250px;
    height: 250px;
    top: -80px;
    right: -80px;
}

.login-left::after {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -40px;
}
.logo-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    z-index: 1;
    overflow: hidden; /* Tambahkan ini agar gambar tidak keluar dari lingkaran */
}

/* Hapus atau komentari bagian ini */
/* .logo-icon i {
    font-size: 45px;
} */

/* Tambahkan style untuk gambar logo */
.logo-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.school-name {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 5px;
    z-index: 1;
}

.school-subtitle {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 15px;
    z-index: 1;
}

.school-description {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 300px;
    z-index: 1;
}

/* Right Side - Form */
.login-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-title {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 25px;
}

/* Alert Messages */
.error-alert, .success-alert {
    width: 100%;
    max-width: 320px;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-alert {
    background-color: #fee;
    border: 2px solid #fcc;
    color: #c0392b;
}

.success-alert {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
    animation: slideIn 0.5s;
}

.error-alert i, .success-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.error-alert-text, .success-alert-text {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements */
.form-group {
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.form-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input.error {
    border-color: #e74c3c;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #3498db;
}

.default-password {
    font-size: 13px;
    color: #888;
    text-align: left;
    max-width: 320px;
    margin-top: -10px;
    margin-bottom: 15px;
}

.verification-info {
    font-size: 13px;
    color: #7f8c8d;
    text-align: center;
    max-width: 320px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.email-info {
    width: 100%;
    max-width: 320px;
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #31708f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-info i {
    font-size: 16px;
    flex-shrink: 0;
}

.email-info strong {
    color: #2c3e50;
}

.forgot-link, .back-link {
    display: inline-block;
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.forgot-link:hover, .back-link:hover {
    text-decoration: underline;
    color: #2980b9;
}

.back-link {
    margin-top: 15px;
    margin-bottom: 0;
}

.login-button {
    width: 100%;
    max-width: 320px;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        padding: 40px 25px;
    }

    .error-alert, .success-alert {
        font-size: 13px;
    }
}


