/* =====================================================
   PIN Gateway – Front-End Styles
   ===================================================== */

.pin-gateway-wrap {
    max-width: 480px;
    margin: 40px auto;
    padding: 40px 36px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

.pin-gateway-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.pin-gateway-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ── Notices ──────────────────────────────────── */
.pin-gateway-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: left;
}

.pin-gateway-error {
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    color: #c0392b;
}

.pin-gateway-success {
    background: #f0fff4;
    border: 1px solid #b2dfdb;
    color: #1e8449;
}

/* ── Form ─────────────────────────────────────── */
.pin-gateway-form {
    text-align: left;
}

.pin-gateway-field {
    margin-bottom: 20px;
}

.pin-gateway-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pin-gateway-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pin-gateway-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
    color: #222;
    letter-spacing: 2px;
    box-sizing: border-box;
}

.pin-gateway-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
    background: #fff;
}

.pin-gateway-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.pin-gateway-toggle:hover {
    color: #0073aa;
}

/* ── Submit Button ────────────────────────────── */
.pin-gateway-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.3px;
}

.pin-gateway-btn:hover {
    background: #005f8e;
    transform: translateY(-1px);
}

.pin-gateway-btn:active {
    transform: translateY(0);
}

/* ── Help text ────────────────────────────────── */
.pin-gateway-help {
    font-size: 0.8rem;
    color: #999;
    margin: 20px 0 0;
    text-align: center;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 540px) {
    .pin-gateway-wrap {
        margin: 20px 16px;
        padding: 28px 20px;
    }
    .pin-gateway-title {
        font-size: 1.3rem;
    }
}
