/* =============================================
   ANALON OTP — Base Styles
   ============================================= */

.analon-otp-container {
    max-width: 460px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.analon-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.analon-event-header {
    text-align: center;
    margin-bottom: 20px;
}

.analon-event-header h2 {
    font-size: 26px;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

/* =============================================
   Steps
   ============================================= */

.analon-step {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.analon-step h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.analon-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 25px;
}

/* =============================================
   Form Elements
   ============================================= */

.analon-form-group {
    margin-bottom: 20px;
}

.analon-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.analon-input:focus {
    outline: none;
    border-color: #1a1a2e;
}

/* =============================================
   Buttons
   ============================================= */

.analon-btn {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.analon-btn-primary {
    display: inline-block;
    width: 100%;
    padding: 14px 30px;
    background: #1a1a2e;
    color: #fff;
}

.analon-btn-primary:hover {
    transform: translateY(-1px);
}

.analon-btn-link {
    background: none;
    color: #666;
    font-size: 14px;
    padding: 10px;
    display: block;
    margin: 10px auto 0;
}

.analon-btn-link:hover {
    color: #1a1a2e;
}

/* =============================================
   OTP Input Boxes
   ============================================= */

.analon-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.analon-otp-box {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #1a1a2e;
}

.analon-otp-box:focus {
    outline: none;
    border-color: #1a1a2e;
}

/* =============================================
   Messages
   ============================================= */

.analon-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.analon-success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.analon-error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =============================================
   Verified Banner (dengan tombol Daftar Lain)
   ============================================= */

.analon-otp-verified-banner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 5px solid #28a745;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.analon-verified-info {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.analon-btn-change-email {
    background: #fff;
    color: #155724;
    border: 1px solid #28a745;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.analon-btn-change-email:hover {
    background: #28a745;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* =============================================
   Info Boxes
   ============================================= */

.analon-info-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.analon-info-default {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    color: #084298;
}

.analon-info-after-submit {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    color: #155724;
    animation: analon-slide-in 0.5s ease-out;
}

.analon-after-submit-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.analon-after-submit-text {
    flex: 1;
    min-width: 200px;
}

.analon-btn-daftar-lain {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.analon-btn-daftar-lain:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

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

/* =============================================
   Resend
   ============================================= */

.analon-resend-wrapper {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* =============================================
   Loading Spinner
   ============================================= */

.analon-loading {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.analon-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1a1a2e;
    border-radius: 50%;
    animation: analon-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes analon-spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   Form Wrapper (setelah verified)
   ============================================= */

.analon-otp-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 480px) {
    .analon-otp-container {
        margin: 15px auto;
    }

    .analon-step {
        padding: 30px 20px;
    }

    .analon-otp-box {
        width: 42px;
        height: 48px;
        font-size: 20px;
    }

    .analon-otp-inputs {
        gap: 6px;
    }

    .analon-event-header h2 {
        font-size: 22px;
    }

    .analon-otp-verified-banner {
        flex-direction: column;
        text-align: center;
    }

    .analon-verified-info {
        text-align: center;
    }

    .analon-btn-change-email,
    .analon-btn-daftar-lain {
        width: 100%;
    }

    .analon-after-submit-inner {
        flex-direction: column;
        text-align: center;
    }

    .analon-after-submit-text {
        text-align: center;
    }
}