/* =========================
   Reset / Page Fix
========================= */
html,
body {
    width: 100%;
    min-height: 100%;
    background: #050816;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* اگر قالب وردپرس padding یا container دارد */
body.page-template-default,
body.page,
body.single,
#app {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

body .site,
body .site-content,
body .content,
body .container,
body .wrapper,


/* =========================
   Full Page Background
========================= */
.wev-auth-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 28px 20px 40px;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 30%),
        radial-gradient(circle at 80% 25%, rgba(168, 85, 247, 0.16), transparent 30%),
        radial-gradient(circle at 30% 85%, rgba(99, 102, 241, 0.14), transparent 30%),
        linear-gradient(135deg, #030712 0%, #050816 35%, #070b1d 100%);
    color: #e5e7eb;
    direction: rtl;
}

.wev-auth-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* =========================
   Header / Logo
========================= */
.wev-auth-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.wev-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.wev-auth-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.wev-auth-logo span {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
}

/* =========================
   Main Card
========================= */
.wev-auth-main {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.wev-auth-card {
    width: 100%;
    max-width: 880px;
    border-radius: 24px;
    padding: 26px;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(10, 15, 30, 0.86) 100%
    );
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

/* =========================
   Form Base
========================= */
.wev-vendor-register-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #e5e7eb;
}

.wev-vendor-register-form h3 {
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.6;
}

/* =========================
   Grid Layout
========================= */
.wev-vendor-register-form .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.wev-vendor-register-form .row > div {
    min-width: 0;
}

/* فیلد تمام عرض */
.wev-vendor-register-form .row.row-full {
    grid-template-columns: 1fr;
}

/* =========================
   Labels
========================= */
.wev-vendor-register-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #c7d2fe;
    line-height: 1.7;
}

/* =========================
   Inputs / Textarea / Select
========================= */
.wev-vendor-register-form input,
.wev-vendor-register-form textarea,
.wev-vendor-register-form select {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(3, 7, 18, 0.96));
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.wev-vendor-register-form textarea {
    min-height: 120px;
    height: 120px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.8;
}

.wev-vendor-register-form input::placeholder,
.wev-vendor-register-form textarea::placeholder {
    color: rgba(203, 213, 225, 0.42);
}

.wev-vendor-register-form input:hover,
.wev-vendor-register-form textarea:hover,
.wev-vendor-register-form select:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

.wev-vendor-register-form input:focus,
.wev-vendor-register-form textarea:focus,
.wev-vendor-register-form select:focus {
    outline: none;
    border-color: #6366f1;
    background: linear-gradient(180deg, rgba(4, 8, 24, 0.98), rgba(2, 6, 23, 1));
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.16),
        0 10px 25px rgba(79, 70, 229, 0.10);
}

/* =========================
   File Input
========================= */
.wev-vendor-register-form input[type="file"] {
    height: auto;
    padding: 12px;
    line-height: 1.7;
    color: #cbd5e1;
    cursor: pointer;
}

.wev-vendor-register-form input[type="file"]::file-selector-button {
    border: none;
    background: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(139,92,246,0.22));
    color: #eef2ff;
    padding: 10px 14px;
    border-radius: 10px;
    margin-left: 10px;
    cursor: pointer;
    transition: all .2s ease;
}

.wev-vendor-register-form input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(139,92,246,0.35));
}

/* =========================
   Buttons
========================= */
.wev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: all 0.22s ease;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.24);
}

.wev-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(99, 102, 241, 0.34);
}

.wev-btn:active {
    transform: translateY(0);
}

/* اگر دکمه داخل فرم انتهاست */
.wev-vendor-register-form .wev-btn {
    min-width: 220px;
}

/* دکمه در سمت چپ یا راست بر اساس RTL */
.wev-form-actions,
.wev-vendor-register-form .actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

/* =========================
   Alerts
========================= */
.wev-errors,
.wev-messages {
    padding: 15px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.9;
    border: 1px solid transparent;
}

.wev-errors {
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(248, 113, 113, 0.22);
    color: #fecaca;
}

.wev-messages {
    background: rgba(20, 83, 45, 0.28);
    border-color: rgba(74, 222, 128, 0.20);
    color: #bbf7d0;
}

/* =========================
   Mobile
========================= */
@media (max-width: 768px) {
    .wev-auth-page {
        padding: 18px 12px 28px;
    }

    .wev-auth-card {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .wev-vendor-register-form h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .wev-vendor-register-form .row {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .wev-vendor-register-form input,
    .wev-vendor-register-form textarea,
    .wev-vendor-register-form select,
    .wev-btn {
        font-size: 14px;
    }

    .wev-vendor-register-form .wev-btn {
        width: 100%;
        min-width: 100%;
    }
}
/* ===== WeEvent Button (Primary) ===== */
.wev-btn,
.wev-vendor-register-form button[type="submit"],
.wev-vendor-register-form input[type="submit"]{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;

  height: 52px;
  padding: 0 22px;
  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
  color: #fff;
  text-decoration: none;

  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 120%);
  box-shadow:
    0 16px 34px rgba(99, 102, 241, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  user-select: none;
}

.wev-btn:hover,
.wev-vendor-register-form button[type="submit"]:hover,
.wev-vendor-register-form input[type="submit"]:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 22px 44px rgba(99, 102, 241, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wev-btn:active,
.wev-vendor-register-form button[type="submit"]:active,
.wev-vendor-register-form input[type="submit"]:active{
  transform: translateY(0);
  filter: brightness(.98);
  box-shadow:
    0 14px 30px rgba(99, 102, 241, 0.26),
    inset 0 2px 10px rgba(0, 0, 0, 0.25);
}

.wev-btn:focus-visible,
.wev-vendor-register-form button[type="submit"]:focus-visible,
.wev-vendor-register-form input[type="submit"]:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.18),
    0 0 0 8px rgba(236, 72, 153, 0.10),
    0 18px 38px rgba(99, 102, 241, 0.30);
}

/* Disabled */
.wev-btn:disabled,
.wev-vendor-register-form button[type="submit"]:disabled,
.wev-vendor-register-form input[type="submit"]:disabled{
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  filter: none;
  box-shadow: none;
}

/* Full width option (اگر خواستی تمام‌عرض شود) */
.wev-btn.wev-btn-block{
  width: 100%;
  margin-top: 20px;
}
