/* Originator Verify SMS Page Styles */

/* Every stylesheet in index.html loads on every page, so these declarations
   must be scoped to this page or they apply app-wide. They previously used
   bare `:root` and `body`, which silently reset the brand palette and turned
   `body` into a centering flex container for the whole app — that made #app
   shrink-to-fit, so every page's width collapsed to its own content width. */
body:has(.verify-container) {
    --color-bg-main: #060a13;
    --color-bg-panel: #0a0f1e;
    --color-border: rgba(96, 165, 250, 0.15);
    --color-text-primary: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-accent-blue: #60a5fa;
    --color-success: #22c55e;
    --color-danger: #ef4444;

    background: radial-gradient(circle at bottom center, #1e3a8a 0, #060a13 55%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.verify-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.logo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-header img {
    height: 60px;
    width: auto;
}

.verify-card {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
}

.verify-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.verify-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.verify-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.verify-phone {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    margin-bottom: 2rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: left;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

.code-input-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.code-input {
    width: 3.5rem;
    height: 4rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--color-text-primary);
    transition: all 0.2s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent-blue);
    border: 1px solid var(--color-accent-blue);
    margin-top: 1rem;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(96, 165, 250, 0.1);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resend-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.resend-text {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.resend-timer {
    color: var(--color-accent-blue);
    font-weight: 600;
}

.footer-links {
    text-align: center;
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--color-accent-blue);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .verify-card {
        padding: 2rem 1.5rem;
    }

    .code-input {
        width: 3rem;
        height: 3.5rem;
        font-size: 1.75rem;
    }

    .code-input-container {
        gap: 0.5rem;
    }

    .verify-title {
        font-size: 1.5rem;
    }
}
