/* AEM Labs Limited - CSS Module: Phone Verification */
/* ================================================= */

.phone-verification-container {
    max-width: 480px;
    width: 90%;
}

.phone-verification-content {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.phone-verification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a71c1c, #6907c5);
}

.verification-header {
    margin-bottom: 32px;
}

.verification-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a71c1c, #6907c5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.verification-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.verification-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.phone-display {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.verification-form {
    margin-top: 32px;
}

.code-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
}

.code-input {
    width: 60px;
    height: 60px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    background: #f8fff9;
    transition: all 0.3s ease;
    outline: none;
}

.code-input:focus {
    border-color: #a71c1c;
    box-shadow: 0 0 0 3px rgba(167, 28, 28, 0.1);
    background: white;
}

.code-input.filled {
    border-color: #28a745;
    background: #f8fff9;
}

.verification-actions {
    margin-top: 32px;
}

.btn-verify {
    background: linear-gradient(135deg, #a71c1c, #6907c5);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 12px;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(105, 7, 197, 0.3);
}

.btn-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.btn-resend-code {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-resend-code:hover {
    background: #f8f9fa;
    border-color: #a71c1c;
    color: #a71c1c;
}

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

.verification-status {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.verification-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.verification-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verification-status.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.verification-help {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: left;
}

.verification-help h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.verification-help ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verification-help li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.verification-help li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

@media (max-width: 768px) {
    .phone-verification-content {
        padding: 24px;
    }

    .verification-title {
        font-size: 24px;
    }

    .code-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .code-input-container {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .phone-verification-content {
        padding: 20px;
    }

    .code-input {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .code-input-container {
        gap: 6px;
    }
}

/* Auto-Verification Mode */
.auto-verification-mode .code-input {
    background: #f0f8ff;
    border-color: #4a90e2;
    color: #4a90e2;
    animation: pulse 1.5s infinite;
}

.auto-verification-mode .code-input.auto-filled {
    font-size: 28px;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

.verification-status.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.verification-status.info::before {
    content: '⏳ ';
    margin-right: 8px;
}

.verification-status.success::before {
    content: '✅ ';
    margin-right: 8px;
}

.verification-status.error::before {
    content: '❌ ';
    margin-right: 8px;
}