/* ── Zalo OTP Login — Styles ── */

.zotp-wrap {
    max-width: 400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Card ── */
.zotp-step {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 32px 28px;
}

/* ── Header ── */
.zotp-header {
    text-align: center;
    margin-bottom: 24px;
}

.zotp-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 12px;
}

.zotp-header h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.zotp-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.zotp-countdown {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
}

#zotp-timer {
    font-weight: 700;
    color: #0068ff;
}

/* ── Field ── */
.zotp-field {
    margin-bottom: 16px;
}

.zotp-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.zotp-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a1a1a;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.zotp-field input:focus {
    border-color: #0068ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.12);
}

/* ── Phone row (flag + input) ── */
.zotp-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.zotp-phone-row input[type="tel"] {
    flex: 1;
    min-width: 0;
}

.zotp-country-wrap select {
    height: 100%;
    padding: 0 10px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: #fafafa;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.zotp-country-wrap select:focus {
    border-color: #0068ff;
    box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.12);
}

#zotp-otp-input {
    font-size: 1.5rem;
    letter-spacing: 0.4em;
    text-align: center;
    font-weight: 700;
}

/* ── Notice ── */
.zotp-notice {
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
    display: block;
}

.zotp-notice--error {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.zotp-notice--success {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.zotp-notice--warn {
    background: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

/* ── Button chính ── */
.zotp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #0068ff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.zotp-btn:hover:not(:disabled) {
    background: #0056d6;
}

.zotp-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.zotp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Spinner ── */
.zotp-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: zotp-spin 0.7s linear infinite;
    display: inline-block;
}

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

/* ── Link buttons ── */
.zotp-link {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: none;
    border: none;
    color: #0068ff;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
    transition: background 0.15s;
}

.zotp-link:hover:not(:disabled) {
    background: #f0f5ff;
}

.zotp-link:disabled {
    color: #aaa;
    cursor: not-allowed;
}

.zotp-back {
    color: #888;
    font-size: 0.85rem;
    margin-top: 4px;
}

.zotp-back:hover {
    color: #444;
    background: #f5f5f5;
}

/* ── Success ── */
.zotp-success {
    text-align: center;
    padding: 8px 0;
}

.zotp-success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    background: #52c41a;
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.zotp-success h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.zotp-success p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* ── Already logged in ── */
.zotp-already-logged-in {
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 10px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .zotp-step {
        padding: 24px 18px;
        border-radius: 12px;
    }
}
