/* Auth pages (Login/Register) */

.auth-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Big page watermark (not rotated) */
.auth-shell::before {
    content: "ZiD";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    font-weight: 900;
    /* Base size (mobile/tablet friendly) */
    font-size: clamp(220px, 32vw, 520px);
    letter-spacing: 0.08em;
    color: rgba(139, 92, 246, 0.06);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

/* Desktop-only: make the watermark noticeably bigger */
@media (min-width: 992px) {
    .auth-shell::before {
        font-size: clamp(520px, 46vw, 1200px);
    }
}

.auth-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 16px;
    box-shadow: 0 1.25rem 2.5rem rgba(17, 24, 39, 0.08);
    z-index: 1; /* keep above page watermark */
}

/* Diagonal ZiD watermark behind the form */
.auth-card::after {
    content: "ZiD";
    position: absolute;
    right: -14px;
    bottom: -28px;
    font-weight: 900;
    font-size: clamp(72px, 12vw, 140px);
    letter-spacing: 0.06em;
    color: rgba(139, 92, 246, 0.12);
    transform: rotate(-18deg);
    transform-origin: bottom right;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Keep card content above watermark */
.auth-card > * {
    position: relative;
    z-index: 1;
}

/* Small accent ribbon */
.auth-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #8b5cf6, #6d28d9, #ec4899);
    z-index: 2;
}

/* Title styling */
.auth-title {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

/* Inputs: slightly softer */
.auth-card .form-control {
    border-radius: 12px;
}

.auth-card .btn {
    border-radius: 12px;
}

@media (prefers-reduced-motion: no-preference) {
    .auth-card {
        transition: transform 160ms ease, box-shadow 160ms ease;
    }

    .auth-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 1.5rem 3.2rem rgba(17, 24, 39, 0.10);
    }
}

/* --- Location autocomplete dropdown (Register) ---
   Make sure suggestions are anchored under the input and not centered/floating.
   Also ensure they appear above other auth-card content.
*/
.location-autocomplete {
    position: relative;
}

.location-autocomplete .autocomplete-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1050;
}

.location-autocomplete .autocomplete-item {
    width: 100%;
    text-align: left;
}
