/**
 * Email Verification Component Styles
 * 6-digit code entry with countdown timer
 */

/* Verification Panel */
.verification-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.verification-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.verification-header {
    text-align: center;
    margin-bottom: 24px;
}

.verification-header h3 {
    margin: 0 0 8px 0;
    color: var(--hh-color-brand-slate, #1a1a1a);
    font-size: 20px;
    font-weight: 600;
}

.verification-header p {
    margin: 0;
    color: var(--hh-color-text-secondary, #666);
    font-size: 14px;
}

.verification-header .email-display {
    font-weight: 500;
    color: var(--hh-color-brand-slate, #1a1a1a);
}

/* Code Input Container */
.verification-code-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
}

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    border: 2px solid var(--hh-color-border, #e0e0e0);
    border-radius: 8px;
    background: var(--hh-color-surface, #fff);
    color: var(--hh-color-brand-slate, #1a1a1a);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.code-input:focus {
    outline: none;
    border-color: var(--hh-color-brand-coral, #F47853);
    box-shadow: 0 0 0 3px rgba(244, 120, 83, 0.15);
}

.code-input.error {
    border-color: var(--hh-color-error, #dc3545);
    animation: shake 0.4s ease-in-out;
}

.code-input.success {
    border-color: var(--hh-color-success, #28a745);
    background-color: rgba(40, 167, 69, 0.05);
}

.code-separator {
    font-size: 24px;
    color: var(--hh-color-text-secondary, #666);
    margin: 0 4px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Timer */
.verification-timer {
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
    color: var(--hh-color-text-secondary, #666);
}

.verification-timer .time {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: var(--hh-color-brand-slate, #1a1a1a);
}

.verification-timer.expiring .time {
    color: var(--hh-color-error, #dc3545);
}

.verification-timer.expired {
    color: var(--hh-color-error, #dc3545);
}

/* Verify Button */
.verify-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: var(--hh-color-brand-coral, #F47853);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    margin-top: 16px;
}

.verify-button:hover:not(:disabled) {
    background-color: var(--hh-color-brand-coral-dark, #e56740);
}

.verify-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.verify-button.loading {
    position: relative;
    color: transparent;
}

.verify-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--hh-color-border, #e0e0e0);
}

.resend-section p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--hh-color-text-secondary, #666);
}

.resend-button {
    background: none;
    border: none;
    color: var(--hh-color-brand-coral, #F47853);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.resend-button:disabled {
    color: var(--hh-color-text-secondary, #999);
    cursor: not-allowed;
    text-decoration: none;
}

.resend-timer {
    font-size: 13px;
    color: var(--hh-color-text-secondary, #999);
    margin-left: 8px;
}

/* Back Link */
.verification-back {
    text-align: center;
    margin-top: 16px;
}

.verification-back a {
    color: var(--hh-color-text-secondary, #666);
    font-size: 14px;
    text-decoration: none;
}

.verification-back a:hover {
    color: var(--hh-color-brand-slate, #1a1a1a);
    text-decoration: underline;
}

/* Error/Success Messages */
.verification-message {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.verification-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--hh-color-error, #dc3545);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.verification-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--hh-color-success, #28a745);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Verification Actions */
.verification-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--hh-color-border, #e0e0e0);
}

.back-button {
    background: none;
    border: none;
    color: var(--hh-color-text-secondary, #666);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
}

.back-button:hover {
    color: var(--hh-color-brand-slate, #1a1a1a);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .code-input {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }

    .verification-code-inputs {
        gap: 6px;
    }

    .code-separator {
        font-size: 20px;
        margin: 0 2px;
    }

    .verification-actions {
        flex-direction: column;
        gap: 12px;
    }
}
