/* === Global Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: "Aspekta";
    src: url("/fonts/Aspekta-450.ttf") format("truetype");
    font-weight: 450;
    font-style: normal;
}

html,
body {
    height: 100%;
    overflow: hidden; /* Biar tidak scroll */
    font-family: "Aspekta", sans-serif;
}

/* === Container Utama === */
.auth-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* === Left Side === */
.auth-left {
    width: 50%;
    background: linear-gradient(to bottom right, #b7d4ff, #d6e8ff);
    position: relative;
    overflow: hidden;
}

.logo {
    position: relative;
    z-index: 2;
    width: 160px;
    margin: 30px;
}

.illustration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1;
}

/* === Right Side === */
.auth-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* fix: form ada di tengah */
    background-color: white;
    padding: 40px;
}

.auth-right form {
    width: 70%; /* biar tidak terlalu mepet */
    max-width: 400px;
}

.auth-right h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

/* === Input Group === */
.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
}

.input-group input:focus {
    border-color: #4a89ff;
}

/* === Button === */
.btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    background: #4a89ff;
    color: white;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #3a78e6;
}

/* === Footer Text === */
.footer-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.footer-text a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 900px) {
    .auth-left {
        display: none;
    }
    .auth-right {
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 30px;
        background: linear-gradient(180deg, #d0e3ff 0%, #e8f1ff 40%, #ffffff 100%);
        min-height: 100vh;
        position: relative;
    }
    
    /* Mobile logo - bigger */
    .auth-right::before {
        content: '';
        position: absolute;
        top: 28px;
        left: 24px;
        width: 180px;
        height: 54px;
        background-image: url('/images/logo.png');
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .auth-right form {
        width: 100%;
        max-width: 360px;
        margin-top: 60px;
        background: #ffffff;
        padding: 28px 24px;
        border-radius: 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    }
    
    .auth-right h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .input-group input {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 20px;
    }
    
    .auth-right::before {
        top: 20px;
        left: 20px;
        width: 100px;
        height: 32px;
    }
    
    .auth-right form {
        width: 100%;
        margin-top: 50px;
    }
    
    .auth-right h2 {
        font-size: 24px;
    }
    
    .input-group {
        margin-bottom: 16px;
    }
    
    .input-group input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 15px;
        margin-top: 10px;
    }
    
    .footer-text {
        font-size: 13px;
    }
}

/* Overlay */
.alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.alert-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Box */
.alert-modal {
    width: 340px;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    transform: scale(0.9) translateY(10px);
    animation: popup 0.35s ease forwards;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* Animation */
@keyframes popup {
    to {
        transform: scale(1) translateY(0);
    }
}

/* Icon */
.alert-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success */
.alert-modal.success .alert-icon {
    background: #dcfce7;
    color: #16a34a;
}

/* Error */
.alert-modal.error .alert-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* Title */
.alert-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Message */
.alert-message {
    font-size: 14px;
    color: #475569;
    margin-bottom: 22px;
}

/* Button */
.alert-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.alert-modal.success .alert-btn {
    background: #22c55e;
    color: #fff;
}

.alert-modal.error .alert-btn {
    background: #ef4444;
    color: #fff;
}

.alert-btn:hover {
    opacity: 0.9;
}



