@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* ==============================
   Global Styles
================================= */
body {
    font-family: 'DM Sans', sans-serif;
    background: #e9e9e9 url('images/bg.png') repeat;
    background-size: 400px;
    padding: 30px;
}

/* ==============================
   Title Box
================================= */
.title-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.title-logo {
    width: 55px;
    height: 55px;
    background-image: url('images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.title-box h2 {
    font-size: 25px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* ==============================
   Container / Card
================================= */
.container {
    width: 420px;
    background: #fff;
    padding: 25px;
    margin: 20px auto;
    border-radius: 0.5rem;
    border: 1px solid #eaeaea;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.10),
        0 12px 28px rgba(0, 0, 0, 0.08);
}

/* ==============================
   Input Fields
================================= */
input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    font-size: 14px;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: 0.2s;
}

input:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.25);
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 25px;
}

.otp-box {
    width: 50px;
    height: 50px;
    font-size: 20px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-weight: 600;
}

.otp-box:focus {
    border-color: #6a5ae0;
}

.otp-btn {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.otp-btn:hover {
    background: #d84332;
}

/* ==============================
   Primary Button (Submit)
================================= */
button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    color: #fff;
    background: #e74c3c;
    transition: 0.2s;
}

button:hover {
    background: #ab2f21;
}


/* ==============================
   Verifikasi OTP Button
================================= */
.btn-otp {
    display: inline-block;
    padding: 6px 16px;
    background: #198754; /* Bootstrap success */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-otp:hover {
    background: #0e5d37; /* Bootstrap hover */
}

/* ==============================
   Simple Alerts (success/error)
================================= */
.success, .error {
    padding: 12px 15px;
    border-radius: 0.375rem;
    margin: 20px auto;
    width: 440px;
    font-size: 14px;
}

.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* ==============================
   Advanced Alert Component
================================= */
.alert {
    width: 420px;
    padding: 14px 18px;
    border-radius: 0.375rem;
    margin: 15px auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: Arial, sans-serif;
    position: relative;
}

.alert-icon {
    font-size: 28px;
    font-weight: bold;
}

.alert-content p {
    margin: 2px 0 0 0;
    font-size: 14px;
}

.alert-close {
    margin-left: auto;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* ===== Variasi Warna ===== */

/* Success */
.alert.success {
    background: #d4f5d2;
    border: 1px solid #b4e3b2;
}

.alert.success .alert-icon,
.alert.success strong {
    color: #2e8b57;
}

/* Warning */
.alert.warning {
    background: #fff6cc;
    border: 1px solid #ffe9a6;
}

.alert.warning .alert-icon,
.alert.warning strong {
    color: #d6a200;
}

/* Error */
.alert.error {
    background: #f7d4d4;
    border: 1px solid #f0b6b6;
}

.alert.error .alert-icon,
.alert.error strong {
    color: #d20000;
}
