/**
 * HCOS Email OTP Styles - Futuristic Design
 *
 * @package HCOS_Email_OTP
 * @since 1.0.0
 */
/* Force hide brand text everywhere */
.hcos-brand-text,
.hcos-brand-text h1 {
    display: none !important;
}
:root {
    --hcos-primary: #2563eb;
    --hcos-secondary: #1e40af;
    --hcos-success: #10b981;
    --hcos-error: #ef4444;
    --hcos-text: #1f2937;
    --hcos-text-light: #6b7280;
    --hcos-border: #e5e7eb;
    --hcos-bg: #f9fafb;
    --hcos-radius: 16px;
    --hcos-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Container */
.hcos-form-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    border-radius: var(--hcos-radius);
    box-shadow: var(--hcos-shadow);
    overflow: hidden;
}

/* Brand Text (No Logo) */
.hcos-brand-text h1 {
    text-align: center;
    font-size: 30px; /* Desktop - perfect size */
    font-weight: 700;
    background: linear-gradient(135deg, var(--hcos-primary), var(--hcos-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    padding: 40px 20px 20px;
    line-height: 1.2;
}

/* Tablet */
@media (max-width: 768px) {
    .hcos-brand-text h1 {
        font-size: 24px;
        padding: 30px 15px 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hcos-brand-text h1 {
        font-size: 20px;
        padding: 25px 10px 10px;
    }
}
/* Header */
.hcos-form-header {
    text-align: center;
    padding: 0 40px 30px;
    background: linear-gradient(180deg, #f9fafb 0%, white 100%);
}

.hcos-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--hcos-text);
    margin: 20px 0 10px;
}

.hcos-form-header p {
    font-size: 16px;
    color: var(--hcos-text-light);
    margin: 0;
}

/* Verification Icon */
.hcos-verification-icon {
    margin: 30px auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Email Display */
.hcos-email-display {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--hcos-primary);
    margin-top: 15px;
    border: 2px solid #bfdbfe;
}

/* Form */
.hcos-form {
    padding: 30px 40px;
}

.hcos-form-group {
    margin-bottom: 24px;
}

.hcos-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--hcos-text);
    font-size: 14px;
}

.hcos-form-group label .required {
    color: var(--hcos-error);
    margin-left: 2px;
}

.hcos-form-group input[type="text"],
.hcos-form-group input[type="email"],
.hcos-form-group input[type="tel"],
.hcos-form-group input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--hcos-border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.hcos-form-group input:focus {
    outline: none;
    border-color: var(--hcos-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.hcos-form-group input::placeholder {
    color: #9ca3af;
}

/* OTP Input Special Style */
.hcos-otp-input {
    text-align: center;
    font-size: 32px !important;
    letter-spacing: 12px !important;
    font-weight: 700 !important;
    padding: 20px !important;
    font-family: 'Courier New', monospace;
}

/* Field Description */
.hcos-field-description {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--hcos-text-light);
}

/* Checkbox */
.hcos-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400 !important;
    padding: 16px;
    background: var(--hcos-bg);
    border-radius: 12px;
    transition: background 0.2s;
}

.hcos-checkbox-label:hover {
    background: #f3f4f6;
}

.hcos-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.hcos-checkbox-label span {
    font-size: 14px;
    color: var(--hcos-text);
}

.hcos-checkbox-label a {
    color: var(--hcos-primary);
    text-decoration: none;
    font-weight: 600;
}

.hcos-checkbox-label a:hover {
    text-decoration: underline;
}

/* Buttons */
.hcos-btn {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hcos-btn-primary {
    background: linear-gradient(135deg, var(--hcos-primary), var(--hcos-secondary));
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.hcos-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.hcos-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.hcos-btn-outline {
    background: transparent;
    color: var(--hcos-primary);
    border: 2px solid var(--hcos-primary);
}

.hcos-btn-outline:hover:not(:disabled) {
    background: var(--hcos-primary);
    color: white;
}

.hcos-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading State */
.hcos-btn.loading .btn-text {
    opacity: 0;
}

.hcos-btn.loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.hcos-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hcos-message:before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hcos-message.success,
.hcos-message-success {
    background: #d1fae5;
    color: #065f46;
    border-color: var(--hcos-success);
}

.hcos-message.success:before {
    content: '✓';
    background: var(--hcos-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hcos-message.error,
.hcos-message-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: var(--hcos-error);
}

.hcos-message.error:before {
    content: '!';
    background: var(--hcos-error);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hcos-message.info {
    background: #dbeafe;
    color: #1e40af;
    border-color: var(--hcos-primary);
}

/* Resend Section */
.hcos-resend-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed var(--hcos-border);
    text-align: center;
}

.hcos-resend-section p {
    margin: 0 0 15px;
    color: var(--hcos-text-light);
    font-size: 14px;
}

#hcos-resend-timer {
    font-size: 13px;
    color: var(--hcos-text-light);
    margin-top: 10px;
}

/* Footer */
.hcos-form-footer {
    padding: 25px 40px 35px;
    background: var(--hcos-bg);
    text-align: center;
}

.hcos-form-footer p {
    margin: 12px 0;
    font-size: 14px;
    color: var(--hcos-text-light);
}

.hcos-form-footer a {
    color: var(--hcos-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.hcos-form-footer a:hover {
    color: var(--hcos-secondary);
    text-decoration: underline;
}

/* Help Text */
.hcos-help-text {
    text-align: center;
    padding: 0 40px 30px;
}

.hcos-help-text p {
    margin: 8px 0;
    font-size: 13px;
    color: var(--hcos-text-light);
}

/* Error Container */
.hcos-error-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    border-radius: var(--hcos-radius);
    box-shadow: var(--hcos-shadow);
    padding: 60px 40px;
    text-align: center;
}

.hcos-error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.hcos-error-container h2 {
    font-size: 24px;
    color: var(--hcos-text);
    margin: 0 0 15px;
}

.hcos-error-container p {
    color: var(--hcos-text-light);
    margin: 10px 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
    .hcos-form-container {
        margin: 20px;
    }
    
    .hcos-form {
        padding: 20px 25px;
    }
    
    .hcos-form-header {
        padding: 0 25px 20px;
    }
    
    .hcos-form-footer {
        padding: 20px 25px 30px;
    }
    
    .hcos-otp-input {
        font-size: 24px !important;
        letter-spacing: 8px !important;
    }
}