/* ============================================================
   Door Pe Store — Auth Pages CSS (login + register)
   Path: app/dist/assets/vendor/css/auth.css
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --green-primary: #0c831f;
    --green-dark:    #0b5e42;
    --green-light:   #eafbec;
    --green-mid:     #059669;
    --yellow:        #f8c200;
    --yellow-dark:   #e6b800;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    background: #f0faf5;
}

/* ── Scrollable on register (taller page) ── */
body { overflow-y: auto; }

/* ── Blobs ── */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}
.blob-1 { width:380px; height:380px; background:#0c831f; top:-130px;  left:-110px; }
.blob-2 { width:280px; height:280px; background:#0b5e42; bottom:-90px; right:-70px; }
.blob-3 { width:160px; height:160px; background:#f8c200; top:48%;     left:62%; opacity:0.15; }

/* ── Wrapper ── */
.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    gap: 14px;
}

/* ── Logo ── */
.logo-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 28px rgba(12,131,31,0.35);
    animation: popIn 0.5s cubic-bezier(0.25,0.9,0.4,1.3) both;
    margin-bottom: 6px;
    border: 3px solid var(--yellow);
}
@keyframes popIn {
    from { opacity:0; transform:scale(0.65); }
    to   { opacity:1; transform:scale(1); }
}
.brand-name {
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-top: 4px;
}
.brand-tagline {
    font-size: 0.76rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 3px;
}

/* ── Card ── */
.auth-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 18px 50px rgba(16,185,129,0.12), 0 4px 14px rgba(0,0,0,0.06);
    padding: 24px 22px 20px;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.45s cubic-bezier(0.25,0.9,0.4,1) both;
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(26px); }
    to   { opacity:1; transform:translateY(0); }
}
.auth-card-title {
    font-weight: 800;
    font-size: 1.18rem;
    color: #111827;
    margin-bottom: 2px;
}
.auth-card-sub {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 16px;
}

/* ── Labels ── */
.form-label {
    font-weight: 600;
    font-size: 0.76rem;
    color: #374151;
    margin-bottom: 4px;
}

/* ── Input groups ── */
.input-group-custom { position: relative; margin-bottom: 4px; }
.input-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 0.9rem; z-index: 2; pointer-events: none;
    transition: color 0.2s;
}
.input-group-custom:focus-within .input-icon { color: var(--green-primary); }

.form-input {
    width: 100%;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 11px;
    padding: 10px 12px 10px 38px;
    font-size: 0.86rem;
    color: #111827;
    transition: all 0.2s;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.form-input:focus {
    background: #fff;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.13);
}
.form-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}
textarea.form-input { resize: none; }

/* Mobile prefix */
.prefix-badge {
    position: absolute; left: 38px; top: 50%; transform: translateY(-50%);
    font-size: 0.82rem; font-weight: 600; color: #374151; z-index: 2; pointer-events: none;
}
.mobile-input { padding-left: 70px !important; }

/* Password eye */
.pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #9ca3af;
    cursor: pointer; font-size: 0.9rem; z-index: 2; padding: 0;
    transition: color 0.2s;
}
.pw-toggle:hover { color: var(--green-primary); }

/* Inline errors */
.err-text { font-size: 0.71rem; color: #ef4444; margin-top: 3px; display: none; }
.err-text.show { display: block; }

/* ── Alerts ── */
.auth-alert {
    border-radius: 10px; border: none;
    font-size: 0.8rem; font-weight: 500;
    padding: 9px 12px;
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
}
.auth-alert-success { background: var(--green-light); color: var(--green-dark); }
.auth-alert-error   { background: #fee2e2;            color: #b91c1c; }

/* ── Submit button ── */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
    color: #fff; border: none; border-radius: 11px;
    padding: 11px; font-weight: 800; font-size: 0.9rem;
    letter-spacing: 0.3px;
    box-shadow: 0 7px 22px rgba(12,131,31,0.3);
    transition: all 0.2s; cursor: pointer;
    border-bottom: 3px solid var(--yellow);
}
.btn-submit:hover   { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(12,131,31,0.38); }
.btn-submit:active  { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Upload button ── */
.btn-outline-upload {
    display: inline-flex; align-items: center;
    padding: 7px 14px;
    border: 1.5px solid var(--green-primary);
    border-radius: 8px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--green-primary);
    cursor: pointer; transition: all 0.2s;
    background: transparent;
}
.btn-outline-upload:hover {
    background: var(--green-primary); color: #fff;
}

/* ── Divider ── */
.divider {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 0 12px;
}
.divider::before, .divider::after { content:''; flex:1; height:1px; background:#e5e7eb; }
.divider span { font-size:0.72rem; color:#9ca3af; font-weight:500; white-space:nowrap; }

/* ── Register link ── */
.register-link-area { text-align:center; font-size:0.8rem; color:#6b7280; }
.register-link-area a { color:var(--green-mid); font-weight:700; text-decoration:none; }
.register-link-area a:hover { text-decoration:underline; }

/* ── Features strip ── */
.features-strip { display:flex; justify-content:center; gap:22px; }
.feature-item {
    display:flex; flex-direction:column; align-items:center; gap:2px;
    font-size:0.66rem; color:#6b7280; font-weight:600;
}
.feature-item i { font-size:1rem; color:var(--green-primary); }

/* ══════════════════════════════════════════════════
   PAGE LOADER — green bg, yellow logo (shared style)
══════════════════════════════════════════════════ */
#pageLoader {
    position: fixed; inset: 0; z-index: 9999;
    background: #0c831f;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s ease;
}
/* Loader hidden via JS inline styles */
.pl-circle { position:absolute; border-radius:50%; background:rgba(255,255,255,0.06); pointer-events:none; }
.pl-c1 { width:300px;height:300px;top:-80px;left:-80px;animation:plFloat 6s ease-in-out infinite; }
.pl-c2 { width:200px;height:200px;bottom:-60px;right:-60px;animation:plFloat 8s ease-in-out infinite reverse; }
.pl-c3 { width:130px;height:130px;top:40%;right:10%;background:rgba(248,194,0,0.12);animation:plFloat 5s ease-in-out infinite 1s; }
@keyframes plFloat { 0%,100%{transform:translateY(0) scale(1);}50%{transform:translateY(-20px) scale(1.05);} }
.loader-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 28px; padding: 38px 48px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2); min-width: 240px;
    z-index: 1; position: relative;
}
.loader-logo {
    width:76px; height:76px;
    background: #f8c200;
    border-radius:24px;
    display:flex; align-items:center; justify-content:center;
    font-size:2.2rem; color:#0b5e42;
    box-shadow:0 12px 36px rgba(248,194,0,0.4);
    animation:loaderBounce 1.6s cubic-bezier(0.36,0.07,0.19,0.97) infinite;
    border:3px solid rgba(255,255,255,0.3);
}
@keyframes loaderBounce {
    0%,100%{transform:translateY(0) rotate(0deg);}
    20%{transform:translateY(-10px) rotate(-3deg);}
    40%{transform:translateY(0px) rotate(3deg);}
    60%{transform:translateY(-5px) rotate(0deg);}
}
.loader-brand { font-size:1.2rem;font-weight:900;color:#fff;letter-spacing:-0.3px;text-align:center; }
.loader-sub   { font-size:0.72rem;font-weight:500;color:rgba(255,255,255,0.7);text-align:center;margin-top:-8px; }
.loader-progress-wrap { width:160px;height:4px;background:rgba(255,255,255,0.2);border-radius:4px;overflow:hidden;margin-top:6px; }
.loader-progress-bar  { height:100%;width:40%;background:#f8c200;border-radius:4px;animation:loaderProgress 1.4s ease-in-out infinite; }
@keyframes loaderProgress { 0%{width:0%;margin-left:0;}50%{width:60%;margin-left:20%;}100%{width:0%;margin-left:100%;} }
