/* ==========================================================================
   Omnisend Customer Auth Hub - Professional Stylesheet
   ========================================================================== */

   :root {
    --omnisend-primary: #4FA1D1;
    --omnisend-primary-hover: #3D8CB9;
    --omnisend-bg: #F4F6F8;
    --omnisend-text-main: #1A2530;
    --omnisend-text-muted: #627382;
    --omnisend-border: #E2E8F0;
    --omnisend-border-focus: #4FA1D1;
    --omnisend-error: #D9383A;
    --omnisend-success: #46962A;
    --omnisend-radius: 12px;
    --omnisend-radius-input: 10px;
}

/* Asosiy Konteyner */
.omnisend-auth-container {
    width: 100%;
    max-width: 480px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--var-text-main);
    box-sizing: border-box;
}

.omnisend-auth-container *, 
.omnisend-auth-container *::before, 
.omnisend-auth-container *::after {
    box-sizing: border-box;
}

/* Oyna korpusi */
.omnisend-auth-box {
    background: #FFFFFF;
    border: 1px solid var(--omnisend-border);
    border-radius: var(--omnisend-radius);
    padding: 32px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Tablar mantiqi (Create Account / Sign In) */
.omnisend-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--omnisend-border);
    margin-bottom: 28px;
}

.omnisend-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--omnisend-text-muted);
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: color 0.2s ease;
}

.omnisend-tab-btn:hover {
    color: var(--omnisend-text-main);
}

.omnisend-tab-btn.active {
    color: var(--omnisend-text-main);
}

.omnisend-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--omnisend-primary);
}

/* Tab tarkibi vizualizatsiyasi */
.omnisend-tab-content {
    display: none;
}

.omnisend-tab-content.active {
    display: block;
}

/* Form elementlari */
.omnisend-form-group {
    margin-bottom: 20px;
}

.omnisend-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--omnisend-text-main);
}

/* Bir qatorda ikkita input (First Name, Last Name) */
.omnisend-form-row-twin {
    display: flex;
    gap: 16px;
}

.omnisend-form-row-twin .omnisend-form-group {
    flex: 1;
}

/* Input konteyneri va Ikonkalar */
.omnisend-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.omnisend-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: 15px;
    border: 1px solid var(--omnisend-border);
    border-radius: var(--omnisend-radius-input);
    background-color: #FFFFFF;
    color: var(--omnisend-text-main);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Agar chap tomonda ikonka bo'lmasa (masalan Last name) paddingni to'g'irlash */
.omnisend-form-row-twin .omnisend-form-group:last-child .omnisend-input-wrapper input {
    padding-left: 16px;
}

.omnisend-input-wrapper input:focus {
    border-color: var(--omnisend-border-focus);
    box-shadow: 0 0 0 3px rgba(79, 161, 209, 0.15);
}

/* Ikonkalarni SVG background orqali xavfsiz va inline yuklash */
.omnisend-input-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
}

.icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23627382'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}

.icon-email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23627382'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.icon-lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23627382'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
}

/* Parol ko'rsatish/yashirish ko'zchasi */
.omnisend-password-toggle {
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.omnisend-password-toggle:hover {
    opacity: 0.8;
}

.icon-eye {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231A2530'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E");
}

.icon-eye.slashed {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231A2530'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.542-7a10.025 10.025 0 014.132-5.4M9.9 4.24a9.12 9.12 0 012.1-.24c4.478 0 8.268 2.943 9.542 7a10.025 10.025 0 01-4.132 5.4M3 3l18 18M9.88 9.88a3 3 0 104.24 4.24'/%3E%3C/svg%3E");
}

/* Submit Tugmasi */
.omnisend-submit-btn {
    width: 100%;
    background-color: var(--omnisend-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--omnisend-radius-input);
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    margin-top: 24px;
}

.omnisend-submit-btn:hover {
    background-color: var(--omnisend-primary-hover);
}

/* Rasm 9915ad dagi "Update Password" ichidagi check belgisi */
.icon-check-inside::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FFFFFF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Sarlavha matnlari va Navigatsiya (Forgot / Check Email guruhlari uchun) */
.omnisend-auth-header-nav {
    margin-bottom: 24px;
}

.omnisend-back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--omnisend-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.omnisend-back-to-login:hover {
    color: var(--omnisend-text-main);
}

.omnisend-back-to-login::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23627382'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 19l-7-7m0 0l7-7m-7 7h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.omnisend-auth-header-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--omnisend-text-main);
}

.omnisend-auth-header-text p {
    font-size: 15px;
    color: var(--omnisend-text-muted);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

/* Check Your Email dagi katta Checkmark (image_996fdb.png) */
.omnisend-email-success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.omnisend-success-checkmark-circle {
    width: 64px;
    height: 64px;
    background-color: rgba(79, 161, 209, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.omnisend-checkmark-icon {
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234FA1D1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.omnisend-bold-email {
    font-weight: 700;
    color: var(--omnisend-text-main);
}

/* Pastki havolalar (Footer textlar) */
.omnisend-policy-text {
    font-size: 13px;
    color: var(--omnisend-text-muted);
    line-height: 1.6;
    margin-top: 20px;
    text-align: center;
}

.omnisend-policy-text a, .omnisend-link {
    color: var(--omnisend-primary);
    text-decoration: none;
    font-weight: 500;
}

.omnisend-policy-text a:hover, .omnisend-link:hover {
    text-decoration: underline;
}

.omnisend-form-footer {
    text-align: center;
    margin-top: 16px;
}

.omnisend-email-footer-text {
    margin-top: 28px;
    font-size: 14px;
    color: var(--omnisend-text-muted);
}

/* Yordamchi klasslar (Utility) */
.text-center { text-align: center; }

/* Xatolik va Muvaffaqiyat xabarlari (AJAX uchun) */
.omnisend-form-error {
    background-color: rgba(217, 56, 58, 0.08);
    color: var(--omnisend-error);
    border-left: 3px solid var(--omnisend-error);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 16px;
    font-weight: 500;
}

.omnisend-form-success {
    background-color: rgba(70, 150, 42, 0.08);
    color: var(--omnisend-success);
    border-left: 3px solid var(--omnisend-success);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 16px;
    font-weight: 500;
}

/* Tugma yuklanish holati (Loading) */
.omnisend-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}