/* =========================
   FILTER FORM — DARK UI
========================= */

.views-exposed-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: end;

    background: linear-gradient(
        180deg,
        rgba(23, 26, 33, 0.96) 0%,
        rgba(17, 19, 24, 0.96) 100%
    );

    border: 1px solid #262b36;
    border-radius: 22px;
    padding: 32px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.03);

    position: relative;
    overflow: hidden;
}

/* Декоративная линия */
.views-exposed-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    width: 120px;
    height: 3px;
    border-radius: 999px;

    background: rgb(148, 68, 65);

    box-shadow:
        0 0 12px rgba(148, 68, 65, 0.45),
        0 0 24px rgba(148, 68, 65, 0.2);
}

/* Form group */
.views-exposed-form .form-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Labels */
.views-exposed-form label {
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Inputs + Selects */
.views-exposed-form .form-text,
.views-exposed-form .form-select {
    width: 100%;
    height: 52px;

    background: #11151b;
    border: 1px solid #2b3240;
    border-radius: 14px;

    padding: 0 16px;

    color: #d7dce2;
    font-size: 0.98rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

/* Focus state */
.views-exposed-form .form-text:focus,
.views-exposed-form .form-select:focus {
    outline: none;

    border-color: rgb(148, 68, 65);

    box-shadow:
        0 0 0 4px rgba(148, 68, 65, 0.15),
        0 0 18px rgba(148, 68, 65, 0.12);

    background: #151922;
}

/* Placeholder */
.views-exposed-form .form-text::placeholder {
    color: #6b7280;
}

/* Description */
.views-exposed-form .description {
    color: #7d8694;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: -2px;
}

/* Actions */
.views-exposed-form .form-actions {
    display: flex;
    align-items: flex-end;
}

/* Button */
.views-exposed-form .form-submit {
    height: 52px;
    min-width: 180px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        rgb(148, 68, 65) 0%,
        rgb(122, 52, 50) 100%
    );

    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;

    box-shadow:
        0 10px 24px rgba(148, 68, 65, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Hover */
.views-exposed-form .form-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(148, 68, 65, 0.35),
        0 0 20px rgba(148, 68, 65, 0.15);
}

/* Active */
.views-exposed-form .form-submit:active {
    transform: translateY(0);
}

/* Select arrow */
.views-exposed-form .form-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #7d8694 50%),
        linear-gradient(135deg, #7d8694 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* Responsive */
@media (max-width: 768px) {
    .views-exposed-form {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 18px;
    }

    .views-exposed-form::before {
        left: 24px;
        width: 90px;
    }

    .views-exposed-form .form-submit {
        width: 100%;
    }
}

/* =========================
   LOGIN FORM — DARK UI
========================= */

.user-login-form {
    position: relative;

    max-width: 460px;
    margin: 60px auto;

    padding: 36px;

    background: linear-gradient(
        180deg,
        rgba(23, 26, 33, 0.96) 0%,
        rgba(17, 19, 24, 0.96) 100%
    );

    border: 1px solid #262b36;
    border-radius: 24px;

    box-shadow:
        0 14px 40px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.03);

    overflow: hidden;
}

/* Акцентная линия */
.user-login-form::before {
    content: "";

    position: absolute;
    top: 0;
    left: 36px;

    width: 120px;
    height: 3px;

    border-radius: 999px;

    background: rgb(148, 68, 65);

    box-shadow:
        0 0 12px rgba(148, 68, 65, 0.4),
        0 0 24px rgba(148, 68, 65, 0.18);
}

/* Мягкое свечение */
.user-login-form::after {
    content: "";

    position: absolute;
    top: -120px;
    right: -120px;

    width: 260px;
    height: 260px;

    background:
        radial-gradient(
            circle,
            rgba(148, 68, 65, 0.12),
            transparent 70%
        );

    pointer-events: none;
}

/* Form item */
.user-login-form .form-item {
    display: flex;
    flex-direction: column;

    margin-bottom: 24px;

    position: relative;
    z-index: 2;
}

/* Labels */
.user-login-form label {
    margin-bottom: 10px;

    color: #f3f4f6;

    font-size: 0.95rem;
    font-weight: 600;

    letter-spacing: 0.02em;
}

/* Inputs */
.user-login-form .form-text {
    width: 100%;
    height: 54px;

    box-sizing: border-box;

    padding: 0 16px;

    background: #11151b;

    border: 1px solid #2b3240;
    border-radius: 14px;

    color: #d7dce2;

    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

/* Focus */
.user-login-form .form-text:focus {
    outline: none;

    border-color: rgb(148, 68, 65);

    background: #151922;

    box-shadow:
        0 0 0 4px rgba(148, 68, 65, 0.14),
        0 0 18px rgba(148, 68, 65, 0.12);
}

/* Placeholder */
.user-login-form .form-text::placeholder {
    color: #6f7785;
}

/* Submit wrapper */
.user-login-form .form-actions {
    margin-top: 10px;

    position: relative;
    z-index: 2;
}

/* Button */
.user-login-form .form-submit {
    width: 100%;
    height: 54px;

    border: none;
    border-radius: 14px;

    cursor: pointer;

    background: linear-gradient(
        135deg,
        rgb(148, 68, 65) 0%,
        rgb(122, 52, 50) 100%
    );

    color: #ffffff;

    font-size: 1rem;
    font-weight: 600;

    letter-spacing: 0.02em;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;

    box-shadow:
        0 10px 24px rgba(148, 68, 65, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Hover */
.user-login-form .form-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 30px rgba(148, 68, 65, 0.36),
        0 0 20px rgba(148, 68, 65, 0.12);
}

/* Active */
.user-login-form .form-submit:active {
    transform: translateY(0);
}

/* Required star */
.user-login-form .form-required::after {
    color: rgb(148, 68, 65);
}

/* Hidden inputs */
.user-login-form input[type="hidden"] {
    display: none;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .user-login-form {
        margin: 30px auto;

        padding: 26px 22px;

        border-radius: 20px;
    }

    .user-login-form::before {
        left: 22px;
        width: 90px;
    }

    .user-login-form .form-text,
    .user-login-form .form-submit {
        height: 50px;
    }
}


