@font-face {
    font-family: vinex-font;
    src: url("/fonts/Tajawal-Medium.ttf");
}

:root {
    --vinex-primary: #23ca47;
    --vinex-primary-dark: #179a35;
    --vinex-secondary: #4ecc2e;
    --vinex-accent: #0f766e;
    --vinex-deep: #163847;
    --vinex-soft: #eef7f6;
    --vinex-soft-2: #f7fbfb;
    --vinex-card: rgba(255, 255, 255, 0.8);
    --vinex-border: rgba(35, 202, 71, 0.12);
    --vinex-input-border: #d3e7df;
    --vinex-text: #163847;
    --vinex-muted: #64818b;
    --vinex-white: #fff;
    --vinex-shadow: 0 24px 60px rgba(22, 56, 71, 0.12);
    --vinex-shadow-lg: 0 40px 90px rgba(22, 56, 71, 0.16);
}

* {
    font-family: vinex-font, sans-serif;
}

html,
body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(35, 202, 71, 0.12), transparent 24%),
        radial-gradient(circle at 85% 18%, rgba(15, 118, 110, 0.09), transparent 28%),
        radial-gradient(circle at 82% 86%, rgba(78, 204, 46, 0.10), transparent 24%),
        linear-gradient(180deg, var(--vinex-soft) 0%, var(--vinex-soft-2) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 56, 71, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 56, 71, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}

.vinex-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.vinex-auth-shell {
    width: 100%;
    max-width: 1450px;
    min-height: 92vh;
    border-radius: 36px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--vinex-shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.vinex-left {
    position: relative;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(145deg, #0f766e 0%, #12835d 24%, #23ca47 70%, #4ecc2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinex-left::before,
.vinex-left::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(10px);
}

.vinex-left::before {
    width: 320px;
    height: 320px;
    top: -110px;
    left: -120px;
}

.vinex-left::after {
    width: 420px;
    height: 420px;
    bottom: -180px;
    right: -140px;
}

.vinex-orbit,
.vinex-orbit::before,
.vinex-orbit::after {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vinex-orbit.o1 {
    width: 170px;
    height: 170px;
    top: 11%;
    right: 12%;
    animation: floatY 7s ease-in-out infinite;
}

.vinex-orbit.o2 {
    width: 70px;
    height: 70px;
    left: 10%;
    top: 22%;
    animation: floatY 6s ease-in-out infinite 1s;
}

.vinex-orbit.o3 {
    width: 230px;
    height: 230px;
    left: 8%;
    bottom: 8%;
    animation: floatY 8s ease-in-out infinite 1.5s;
}

.vinex-orbit.o4 {
    width: 96px;
    height: 96px;
    right: 18%;
    bottom: 18%;
    animation: floatY 6.5s ease-in-out infinite 2s;
}

.vinex-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 610px;
    color: #fff;
    padding: 40px;
}

.vinex-left-logo {
    width: 100%;
    max-width: 260px;
    margin: 0 auto 28px;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.18));
}

.vinex-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.vinex-left-title {
    font-size: 45px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #fff;
}

.vinex-left-subtitle {
    max-width: 520px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.9;
}

.vinex-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.vinex-point {
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(8px);
}

.vinex-right {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(247, 251, 251, 0.92) 100%);
}

.vinex-form-card {
    width: 100%;
    max-width: 470px;
    background: var(--vinex-card);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 32px;
    padding: 36px 30px 28px;
    box-shadow: var(--vinex-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.vinex-form-card::before {
    content: "";
    position: absolute;
    top: -90px;
    left: -90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 202, 71, 0.16) 0%, transparent 70%);
}

.vinex-form-card::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.12) 0%, transparent 72%);
}

.vinex-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--vinex-accent);
    background: rgba(35, 202, 71, 0.08);
    border: 1px solid rgba(35, 202, 71, 0.14);
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.vinex-small-logo {
    height: 88px;
    display: block;
    margin: 0 auto 14px;
    position: relative;
    z-index: 2;
}

.vinex-form-title {
    text-align: center;
    color: var(--vinex-deep);
    font-size: 31px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.vinex-form-subtitle {
    text-align: center;
    color: var(--vinex-muted);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.vinex-group {
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.vinex-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--vinex-text);
}

.vinex-input-wrap {
    position: relative;
}

.vinex-input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6e8f88;
    font-size: 16px;
    z-index: 2;
}

.vinex-input {
    height: 60px;
    border-radius: 18px;
    border: 1px solid var(--vinex-input-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--vinex-text);
    font-size: 15px;
    padding: 12px 18px 12px 18px;
    padding-right: 48px;
    transition: all 0.25s ease;
    box-shadow: none !important;
}

.vinex-input:focus {
    border-color: rgba(35, 202, 71, 0.48);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(35, 202, 71, 0.10) !important;
}

.vinex-input::placeholder {
    color: #9ab1aa;
}

.vinex-login-btn {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--vinex-accent) 0%, var(--vinex-primary) 52%, var(--vinex-secondary) 100%);
    box-shadow: 0 18px 38px rgba(35, 202, 71, 0.26);
    transition: all 0.28s ease;
    position: relative;
    z-index: 2;
}

.vinex-login-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(35, 202, 71, 0.3);
}

.vinex-alert {
    border: 0;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.08);
    position: relative;
    z-index: 2;
}

.vinex-forgot {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--vinex-muted);
    line-height: 1.9;
    position: relative;
    z-index: 2;
}

.vinex-copy {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #7d9891;
    position: relative;
    z-index: 2;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

@media (max-width: 991.98px) {
    .vinex-auth-page {
        padding: 14px;
    }

    .vinex-auth-shell {
        min-height: auto;
        border-radius: 24px;
    }

    .vinex-left,
    .vinex-right {
        min-height: auto;
    }

    .vinex-left {
        padding: 42px 24px;
    }

    .vinex-left-title {
        font-size: 32px;
    }

    .vinex-form-card {
        padding: 28px 22px 22px;
        border-radius: 24px;
    }
}

@media (max-width: 767.98px) {
    .vinex-left {
        display: none !important;
    }

    .vinex-right {
        min-height: 100vh;
        padding: 20px 12px;
    }

    .vinex-form-title {
        font-size: 26px;
    }

    .vinex-small-logo {
        height: 66px;
    }
}
