/* Kitzobd Mobile OTP Scoped Frontend Styles */
.kitzo-otp-wrapper {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: inherit;
    color: #1f2937;
    box-sizing: border-box;
}

.kitzo-otp-wrapper * {
    box-sizing: border-box;
}

/* Tabs */
.kitzo-auth-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.kitzo-auth-tab {
    flex: 1;
    padding: 16px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.kitzo-auth-tab.active {
    color: #ff6a00;
    background: #ffffff;
    border-bottom-color: #ff6a00;
}

.kitzo-auth-tab:hover:not(.active) {
    color: #0f172a;
    background: #f1f5f9;
}

/* Body */
.kitzo-auth-body {
    padding: 28px 32px;
}

@media (max-width: 640px) {
    .kitzo-auth-body {
        padding: 20px 20px;
    }
}

.kitzo-pane-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.kitzo-pane-header p {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Alert */
.kitzo-auth-alert {
    margin: 20px 32px 0 32px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.kitzo-auth-alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.kitzo-auth-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.kitzo-auth-alert.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Form Groups */
.kitzo-form-group {
    margin-bottom: 18px;
}

.kitzo-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.kitzo-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.kitzo-label-row label {
    margin-bottom: 0;
}

.kitzo-link-forgot {
    font-size: 12px;
    font-weight: 600;
    color: #ff6a00;
    text-decoration: none;
}

.kitzo-link-forgot:hover {
    text-decoration: underline;
}

/* Phone Field */
.kitzo-phone-field {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.kitzo-phone-field:focus-within {
    border-color: #ff6a00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.kitzo-phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: #f3f4f6;
    border-right: 1.5px solid #e5e7eb;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    user-select: none;
}

.kitzo-phone-field input {
    flex: 1;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    background: transparent;
    border: none;
    outline: none;
    letter-spacing: 0.5px;
}

/* Password Field */
.kitzo-password-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.kitzo-password-field:focus-within {
    border-color: #ff6a00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.kitzo-password-field input {
    flex: 1;
    padding: 12px 14px;
    font-size: 14px;
    color: #111827;
    background: transparent;
    border: none;
    outline: none;
}

.kitzo-toggle-eye {
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.kitzo-toggle-eye:hover {
    opacity: 1;
}

/* Regular Inputs */
.kitzo-form-group input[type="text"],
.kitzo-form-group input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.kitzo-form-group input[type="text"]:focus,
.kitzo-form-group input[type="email"]:focus {
    border-color: #ff6a00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.kitzo-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

.kitzo-field-msg {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
}

.kitzo-field-msg.success { color: #059669; }
.kitzo-field-msg.warning { color: #d97706; }
.kitzo-field-msg.error   { color: #dc2626; }

/* Password Rules checklist */
.kitzo-pass-rules {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kitzo-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    transition: color 0.2s;
}

.kitzo-rule.valid {
    color: #059669;
    font-weight: 600;
}

.kitzo-rule .rule-bullet {
    font-weight: 700;
    width: 14px;
}

/* Remember me */
.kitzo-form-row-remember {
    margin: 8px 0 16px 0;
}

.kitzo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

/* Primary Button */
.kitzo-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6a00 0%, #ee5a00 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kitzo-btn-primary:hover {
    background: linear-gradient(135deg, #ff7a1a 0%, #f06008 100%);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35);
    transform: translateY(-1px);
}

.kitzo-btn-primary:active {
    transform: translateY(0);
}

.kitzo-btn-primary:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* OTP Card */
.kitzo-otp-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 10px;
}

.kitzo-otp-card-header h4 {
    margin: 8px 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.kitzo-otp-card-header p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #64748b;
}

.kitzo-otp-badge-sent {
    display: inline-block;
    padding: 3px 10px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.kitzo-otp-code-input {
    width: 220px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 8px;
    padding: 12px 14px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    color: #0f172a;
    transition: all 0.2s ease;
}

.kitzo-otp-code-input:focus {
    border-color: #ff6a00;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.15);
}

.kitzo-resend-row {
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
}

.kitzo-cooldown-timer {
    font-weight: 600;
    color: #ff6a00;
}

.kitzo-btn-link {
    background: transparent;
    border: none;
    color: #ff6a00;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.kitzo-back-row {
    margin-top: 18px;
    text-align: center;
}

.kitzo-btn-text-link {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

.kitzo-btn-text-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

/* Spinner */
.kitzo-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: kitzo-spin 0.6s linear infinite;
    display: inline-block;
}

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

.hidden {
    display: none !important;
}
