/* =====================================================================
   Auction Login Popup — popup.css
   Luxury dark auction-house aesthetic, tuned for WooCommerce Simple Auctions
   ===================================================================== */

/* ── Design tokens ── */
:root {
    --alp-bg:           #111010;
    --alp-surface:      #181716;
    --alp-surface2:     #222120;
    --alp-border:       rgba(255, 255, 255, 0.07);
    --alp-gold:         #c9a84c;
    --alp-gold-dark:    #a07830;
    --alp-gold-glow:    rgba(201, 168, 76, 0.18);
    --alp-text:         #f2ede5;
    --alp-text-muted:   #888480;
    --alp-danger:       #d95f5f;
    --alp-success:      #4db88a;
    --alp-radius:       14px;
    --alp-ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Overlay ── */
#alp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
#alp-overlay[aria-hidden="false"] {
    display: flex;
}

/* ── Backdrop ── */
.alp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 5, 5, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    animation: alp-fade .25s ease forwards;
}

/* ── Modal card ── */
.alp-modal {
    position: relative;
    background: var(--alp-surface);
    border: 1px solid var(--alp-border);
    border-radius: var(--alp-radius);
    width: 100%;
    max-width: 432px;
    padding: 44px 36px 36px;
    box-sizing: border-box;
    box-shadow:
        0 0 0 1px rgba(201,168,76,.06),
        0 40px 100px rgba(0,0,0,.75),
        0 0 80px rgba(201,168,76,.03);
    animation: alp-rise .36s var(--alp-ease) forwards;
    overflow: hidden;
    max-height: 600px;
}

/* Gold top accent line */
.alp-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--alp-gold) 40%, var(--alp-gold) 60%, transparent 100%);
}

/* ── Close button ── */
.alp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--alp-border);
    background: var(--alp-surface2);
    color: var(--alp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s;
    padding: 0;
}
.alp-close:hover {
    color: var(--alp-text);
    border-color: var(--alp-gold);
    background: var(--alp-gold-glow);
}

/* ── Header ── */
.alp-header {
    text-align: center;
    margin-bottom: 28px;
}
.alp-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,.22);
    background: rgba(201,168,76,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--alp-gold);
    margin-bottom: 14px;
}
.alp-title {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 24px !important;
    font-weight: 600;
    color: var(--alp-text);
    letter-spacing: .02em;
    margin: 0 0 6px;
    line-height: 24px !important;
}
.alp-subtitle {
    font-size: 13px;
    color: var(--alp-text-muted);
    margin: 0;
    letter-spacing: .02em;
}

/* ── Steps ── */
.alp-step[hidden] { display: none; }
.alp-step         { animation: alp-fade .2s ease forwards; }

/* ── Email chip ── */
.alp-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    background: var(--alp-surface2);
    border: 1px solid var(--alp-border);
    border-radius: 9px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--alp-text-muted);
    overflow: hidden;
}
.alp-chip-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--alp-gold), var(--alp-gold-dark));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #0e0c0a;
}
.alp-chip-email {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--alp-text);
    font-size: 13px;
}
.alp-chip-change {
    flex-shrink: 0;
    background: none !important; 
    border: none !important;
    color: var(--alp-gold) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer !important;
    padding: 0 !important;
    transition: opacity .15s !important;
}
.alp-chip-change:hover { opacity: .75; }

/* ── New-account note ── */
.alp-new-account-note {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    background: rgba(201,168,76,.06);
    border: 1px solid rgba(201,168,76,.15);
    border-radius: 8px;
    font-size: 13px;
    color: var(--alp-text-muted);
    margin: 0 0 16px !important;
}
.alp-new-account-note svg { flex-shrink: 0; color: var(--alp-gold); }

/* ── Field groups ── */
.alp-field-group {
    margin-bottom: 14px;
}
.alp-field-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--alp-text-muted);
    margin-bottom: 7px;
}
.alp-optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }

.alp-input-wrap { position: relative; }

/* ── Inputs ── */
.alp-input-wrap input,
.alp-field-group > input {
    width: 100%;
    padding: 12px 42px 12px 14px;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--alp-border) !important;
    border-radius: 0 !important;
    color: var(--alp-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s, background .18s !important;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
}
.alp-field-group > input { padding: 12px 14px; }  /* no icon */

.alp-input-wrap input:focus,
.alp-field-group > input:focus {
    border-color: var(--alp-gold);
    background: rgba(201,168,76,.03);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.alp-input-wrap input::placeholder,
.alp-field-group > input::placeholder { color: #3d3b39; }

/* ── Input icon (right side, decorative) ── */
.alp-input-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #3d3b39;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.alp-step {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;    padding: 15px;
}
/* Small scrollbar */
.alp-step::-webkit-scrollbar {
    width: 4px;
}

.alp-step::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.alp-step::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
}

.alp-step::-webkit-scrollbar-thumb:hover {
    background: #666;
}
/* ── Toggle password button ── */
.alp-toggle-pw {
        position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none;
    color: var(--alp-text-muted) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    padding: 2px !important;
    transition: color .15s;
    border: 0 !important;
}
.alp-toggle-pw:hover { color: var(--alp-text); }
.alp-eye[hidden] { display: none; }

/* ── Forgot link ── */
.alp-forgot {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--alp-gold);
    text-decoration: none;
    letter-spacing: .02em;
    transition: opacity .15s;
}
.alp-forgot:hover { opacity: .75; }

/* ── 2-column row ── */
.alp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Password strength ── */
.alp-strength-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}
.alp-strength-track {
    flex: 1;
    height: 4px;
    background: var(--alp-surface2);
    border-radius: 4px;
    overflow: hidden;
}
.alp-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width .3s var(--alp-ease), background .3s;
}
.alp-strength-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    min-width: 44px;
    text-align: right;
}

/* ── Primary button ── */
.alp-btn {
    width: 100% !important;
    padding: 14px 18px !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer !important;
    transition: transform .18s var(--alp-ease), box-shadow .18s !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 6px;
    font-family: inherit;
    position: relative;
}
.alp-btn-primary {
    background: linear-gradient(135deg, var(--alp-gold) 0%, var(--alp-gold-dark) 100%);
    color: #fff !important;
    box-shadow: 0 4px 22px rgba(201,168,76,.22);
    border-radius: 0 !important;
}
.alp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,168,76,.32);
}
.alp-btn-primary:active:not(:disabled) { transform: translateY(0); }
.alp-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Spinner ── */
.alp-spinner {
    min-width: 17px;
    min-height: 17px;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(13,11,9,.3);
    border-top-color: #0d0b09;
    border-radius: 50%;
    animation: alp-spin .65s linear infinite;
    flex-shrink: 0;
    position: absolute;
}
.alp-spinner[hidden] { display: none; }

/* ── Error banner ── */
.alp-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 13px;
    background: rgba(217,95,95,.08);
    border: 1px solid rgba(217,95,95,.22);
    border-radius: 8px;
    color: var(--alp-danger);
    font-size: 13px;
    margin-top: 12px;
    animation: alp-shake .4s ease;
    line-height: 1.45;
}
.alp-error[hidden] { display: none; }
.alp-error svg { flex-shrink: 0; margin-top: 1px; }

/* ── Success ── */
.alp-success-wrap {
    text-align: center;
    padding: 8px 0 4px;
}
.alp-check-svg {
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
}
.alp-check-circle {
    stroke: var(--alp-success);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: alp-circle .6s var(--alp-ease) forwards;
}
.alp-check-tick {
    stroke: var(--alp-success);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: alp-tick .4s .5s var(--alp-ease) forwards;
}
.alp-success-title {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--alp-text);
    margin: 0 0 8px;
}
.alp-success-msg {
    font-size: 14px;
    color: var(--alp-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ── Keyframes ── */
@keyframes alp-fade  { from { opacity: 0 } to { opacity: 1 } }
@keyframes alp-rise  { from { opacity: 0; transform: translateY(20px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes alp-spin  { to { transform: rotate(360deg) } }
@keyframes alp-shake {
    0%,100% { transform: translateX(0) }
    20%     { transform: translateX(-6px) }
    60%     { transform: translateX(5px) }
}
@keyframes alp-circle { to { stroke-dashoffset: 0 } }
@keyframes alp-tick   { to { stroke-dashoffset: 0 } }

/* ── Responsive ── */
@media (max-width: 480px) {
    .alp-modal  { padding: 40px 20px 28px; }
    .alp-row    { grid-template-columns: 1fr; gap: 0; }
    .alp-title  { font-size: 20px; }
}
/* ================================================================
   Auction Login Popup — verify step additions  v1.3.0
   Add these rules to your existing popup.css
   ================================================================ */

/* ── Verify wrapper ── */
.alp-verify-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0 4px;
    gap: 12px;
}

/* ── Envelope icon with subtle pulse ── */
.alp-verify-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fdf6e3;
    border: 2px solid #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a84c;
    animation: alp-pulse-ring 2.4s ease-in-out infinite;
}
@keyframes alp-pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,.35); }
    50%       { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
}

/* ── Heading & copy ── */
.alp-verify-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--alp-text, #1a1a1a);
}
.alp-verify-addr {
    font-size: 13px;
    color: var(--alp-muted, #666);
    margin: 0;
}
.alp-verify-addr strong {
    color: var(--alp-text, #1a1a1a);
    word-break: break-all;
}
.alp-verify-msg {
    font-size: 13px;
    color: var(--alp-muted, #666);
    margin: 0;
    line-height: 1.5;
}

/* ── Polling dots ── */
.alp-verify-polling {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--alp-muted, #888);
    margin: 4px 0;
}
.alp-poll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a84c;
    animation: alp-bounce-dot .9s ease-in-out infinite;
}
.alp-poll-dot:nth-child(2) { animation-delay: .15s; }
.alp-poll-dot:nth-child(3) { animation-delay: .30s; }
@keyframes alp-bounce-dot {
    0%, 80%, 100% { transform: scale(.6); opacity: .4; }
    40%           { transform: scale(1);  opacity: 1;  }
}
.alp-poll-label { margin-left: 4px; }

/* ── Resend row ── */
.alp-verify-resend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--alp-muted, #666);
    flex-wrap: wrap;
    justify-content: center;
}

/* Ghost button variant (resend) */
.alp-btn-ghost {
    background: transparent !important;
    border: 1px solid currentColor !important;
    color: var(--alp-gold, #c9a84c) !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    position: relative;
    transition: background .15s, color .15s !important;
}
.alp-btn-ghost:hover {
    background: var(--alp-gold, #c9a84c);
    color: #fff;
}
.alp-btn-ghost:disabled { opacity: .6; cursor: not-allowed; }

/* Resend status message */
.alp-resend-status {
    font-size: 12px;
    color: #4db88a;
    margin: 0;
}
