
.warning-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 24px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
}

.warning-message svg {
    flex-shrink: 0;
}

.helper-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #667;
}

.helper-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.timer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 4px;
}

#timerDisplay {
    font-size: 14px;
    color: #667;
}

#timerDisplay strong {
    color: #1a1a1a;
    font-weight: 700;
}

#timerDisplay.expired strong {
    color: #dc3545;
}

.resend-btn {
    background: transparent;
    color: #667;
    border: 1px solid #e5e5e5;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.resend-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #d5d5d5;
    color: #1a1a1a;
}

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

.resend-btn:not(:disabled) {
    background: #a3ff00;
    color: #1a1a1a;
    border-color: #a3ff00;
}

.resend-btn:not(:disabled):hover {
    background: #8ee600;
    border-color: #8ee600;
}

#code {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #dc3545;
}

.modal-header {
    padding: 32px 32px 16px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -1px;
}

.modal-body {
    padding: 0 32px 24px;
}

.modal-body p {
    color: #667;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    padding: 16px 32px 32px;
}

.modal-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #a3ff00;
    transition: left 0.3s ease;
    z-index: -1;
}

.modal-btn:hover::before {
    left: 0;
}

.modal-btn:hover {
    color: #1a1a1a;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading span::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

@media (max-width: 768px) {
    .timer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .resend-btn {
        width: 100%;
    }

    #code {
        font-size: 20px;
        letter-spacing: 6px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 24px 24px 12px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-body {
        padding: 0 24px 20px;
    }

    .modal-body p {
        font-size: 15px;
    }

    .modal-footer {
        padding: 12px 24px 24px;
    }

    .modal-btn {
        width: 100%;
    }
}