/* 
   PAZARIX AUTHENTICATION PAGES (Login / Register)
   Premium Modern Style (Muggo/Paen inspired)
   Independent file to avoid encoding issues
*/

/* --- Global Auth Layout --- */
.pzx-auth-wrapper {
    background-color: #f7f7f7 !important;
    /* Force light background */
    min-height: calc(100vh - 160px);
    /* Adjust for header/footer */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center Vertically */
    padding: 60px 20px;
    width: 100%;
}

.pzx-auth-container {
    width: 100%;
    max-width: 480px;
    /* Optimal reading width */
    margin: 0 auto;
}

.pzx-auth-container.is-wide {
    max-width: 600px;
    /* For register forms with more fields */
}

/* --- Card Style --- */
.pzx-auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    /* Slightly tighter radius for modern look */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* Tailwind-like subtle shadow */
    border: 1px solid #eaeaea;
}

/* --- Header Section --- */
.pzx-auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.pzx-auth-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #000;
}

.pzx-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.pzx-auth-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* --- Form Elements --- */
.pzx-auth-form .form-group {
    margin-bottom: 20px;
}

.pzx-auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Fields */
.pzx-auth-form .form-control,
.pzx-auth-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #111;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-shadow: none;
    /* Remove Bootstrap shadow */
}

.pzx-auth-form .form-control::placeholder {
    color: #999;
}

.pzx-auth-form .form-control:focus {
    color: #111;
    background-color: #fff;
    border-color: #000;
    /* Black border on focus */
    outline: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Button */
.pzx-auth-btn {
    display: inline-block;
    width: 100%;
    font-weight: 700;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #000;
    border: 1px solid #000;
    padding: 14px 12px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 10px;
}

.pzx-auth-btn:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
    transform: translateY(-1px);
}

/* --- Links & Misc --- */
.pzx-auth-links {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pzx-auth-links a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.pzx-auth-links a:hover {
    border-bottom-color: #111;
}

.pzx-auth-separator {
    height: 1px;
    background-color: #eee;
    margin: 15px 0;
    width: 100%;
}

/* --- Radio Group (Register Page) --- */
.pzx-auth-radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.pzx-auth-radio-item {
    flex: 1;
    position: relative;
}

.pzx-auth-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pzx-auth-radio-item label {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    transition: all 0.2s;
    margin: 0;
}

.pzx-auth-radio-item input[type="radio"]:checked+label {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* --- Password Toggle Position --- */
.password-absolute {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 2;
    padding: 5px;
    /* Increase click area */
    margin-top: 12px;
    /* Offset for label */
}

/* Mobile Responsive Adjustments */
@media (max-width: 576px) {
    .pzx-auth-wrapper {
        padding: 30px 15px;
    }

    .pzx-auth-card {
        padding: 25px 20px;
        box-shadow: none;
        /* Simplify on mobile */
        border: none;
        background: transparent;
    }

    .pzx-auth-wrapper {
        background-color: #fff !important;
        /* White bg on mobile for full screen feel */
    }
}


/* ═══════════════════════════════════════════════════════════════
   LOADING OVERLAY — Auth Pages Modern Loader
   21 Şubat 2026 — Eski load.svg yerine CSS-only spinner
   ═══════════════════════════════════════════════════════════════ */
#shopButtonOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#shopButtonOverlay.active {
    display: flex;
}

#shopButtonOverlay .shopButtonT {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: pzxAuthFadeIn 0.3s ease;
}

#shopButtonOverlay .shopButtonT > div:first-child {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px auto;
    position: relative;
}

/* Eski SVG imajını gizle */
#shopButtonOverlay .shopButtonT > div:first-child img {
    display: none !important;
}

/* Modern CSS spinner — siyah tema (auth sayfalarına uygun) */
#shopButtonOverlay .shopButtonT > div:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    border: 3px solid #e5e7eb;
    border-top-color: #000;
    border-radius: 50%;
    animation: pzxAuthSpin 0.7s linear infinite;
    box-sizing: border-box;
}

#shopButtonOverlay .shopButtonT > div:last-child {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.3px;
}

@keyframes pzxAuthSpin {
    to { transform: rotate(360deg); }
}

@keyframes pzxAuthFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) translateY(10px); }
    to { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   MODERN FORM SUBMIT LOADER — Auth Pages (Login / Register)
   21 Şubat 2026 — Eski dandik load.svg yerine CSS-only spinner
   ═══════════════════════════════════════════════════════════════ */

.pzx-auth-wrapper ~ #shopButtonOverlay,
#shopButtonOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 999999 !important;
    display: none;
}

.pzx-auth-wrapper ~ #shopButtonOverlay .shopButtonT,
#shopButtonOverlay .shopButtonT {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    animation: pzxAuthFadeInUp 0.4s ease !important;
}

/* Spinner container — img gizle, CSS spinner göster */
.pzx-auth-wrapper ~ #shopButtonOverlay .shopButtonT > div:first-child,
#shopButtonOverlay .shopButtonT > div:first-child {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 20px !important;
    position: relative !important;
}

.pzx-auth-wrapper ~ #shopButtonOverlay .shopButtonT > div:first-child img,
#shopButtonOverlay .shopButtonT > div:first-child img {
    display: none !important;
}

.pzx-auth-wrapper ~ #shopButtonOverlay .shopButtonT > div:first-child::before,
#shopButtonOverlay .shopButtonT > div:first-child::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 48px !important;
    height: 48px !important;
    border: 3px solid #e5e5e5 !important;
    border-top-color: #000 !important;
    border-radius: 50% !important;
    animation: pzxAuthSpin 0.7s linear infinite !important;
    box-sizing: border-box !important;
}

/* Loader text */
.pzx-auth-wrapper ~ #shopButtonOverlay .shopButtonT > div:last-child,
#shopButtonOverlay .shopButtonT > div:last-child {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

@keyframes pzxAuthSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pzxAuthFadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
