/* Shared styling for the auth-side email verification surfaces:
   - #verify-gate (Gate B) on the register page
   - the hosted /verify-email handler page
   Branded to the Mydrop light theme, smooth and modern. */

/* Verify step lives inside the auth slider (slide 3); center it in the fixed box. */
#verify-slide {
    justify-content: center;
    gap: 0;
}

.verify-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
    animation: verify-fade-in 0.4s ease both;
}

.verify-stage h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--font-black);
}

/* Compact badge inside the slide */
#verify-slide .verify-gate-badge {
    width: 52px;
    height: 52px;
}
#verify-slide .verify-gate-badge svg {
    width: 26px;
    height: 26px;
}

/* Resend / back-to-login as quiet inline links under the status */
.verify-gate-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
}
.verify-gate-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-family);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--link-color);
    text-decoration: none;
    cursor: pointer;
}
.verify-gate-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}
.verify-gate-dot {
    color: var(--font-gray-clair);
}
.verify-gate-link:disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}
.verify-keep-open {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-small, 10px);
    background: rgba(234, 140, 0, 0.1);
    color: #c47800;
    font-size: 0.78rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
}
.verify-keep-open svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.verify-gate-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: var(--purple-clear);
    box-shadow: 0 10px 30px rgba(192, 0, 245, 0.18);
}

.verify-gate-badge svg {
    width: 30px;
    height: 30px;
}

.verify-gate-badge.is-success {
    color: var(--green);
    background: var(--green-clear-2);
    animation: verify-pop-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.verify-gate-badge.is-success svg {
    width: 32px;
    height: 32px;
}

.verify-gate-email {
    margin: 0;
    font-weight: 600;
    color: var(--font-black);
    word-break: break-all;
    background: var(--bg-blue-clear);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small, 10px);
    padding: 10px 16px;
}

.verify-gate-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--font-gray);
    font-size: 0.86rem;
    margin-top: 4px;
}

.verify-gate-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--purple-clear);
    border-top-color: var(--primary-color);
    animation: verify-spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ---------- Hosted /verify-email page ---------- */

.verify-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--page-gradient);
}

.verify-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--muted-border, rgba(18, 24, 38, 0.08));
    border-radius: var(--radius-large, 20px);
    box-shadow: var(--card-shadow);
    padding: 40px 34px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: verify-pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.verify-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.verify-card-logo {
    height: 30px;
    width: auto;
    margin-bottom: 4px;
    filter: var(--logo-filter);
}

.verify-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-icon svg {
    width: 38px;
    height: 38px;
}

.verify-icon.is-loading {
    color: var(--primary-color);
    background: var(--purple-clear);
}

.verify-icon.is-success {
    color: var(--green);
    background: var(--green-clear-2);
    animation: verify-pop-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.verify-icon.is-error {
    color: var(--red-clear);
    background: rgba(198, 4, 4, 0.08);
}

.verify-spinner-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--purple-clear);
    border-top-color: var(--primary-color);
    animation: verify-spin 0.8s linear infinite;
}

.verify-card h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--font-black);
}

.verify-card p {
    margin: 0;
    color: var(--font-gray);
    font-size: 0.95rem;
    line-height: 1.55;
}

.verify-countdown {
    font-size: 0.86rem;
    color: var(--font-gray);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.verify-countdown-num {
    font-weight: 700;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.verify-fallback {
    background: var(--bg-blue-clear);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-small, 10px);
    padding: 12px 16px;
    color: var(--font-black-clair);
    font-size: 0.86rem;
    line-height: 1.5;
}

.verify-button {
    width: 100%;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-small, 10px);
    padding: 12px 18px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand-gradient);
    transition: transform var(--transition-fast, 0.2s) ease, box-shadow var(--transition-fast, 0.2s) ease;
}

.verify-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(192, 0, 245, 0.22);
}

.verify-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.verify-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.verify-hidden {
    display: none !important;
}

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

@keyframes verify-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes verify-pop-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
