@import url('tokens.css');

.login-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    background: #2c2c2c;
    padding: 24px;
}

.login-card {
    width: min(1040px, 100%);
    min-height: 640px;
    background: #fff;
    border-radius: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.login-form {
    padding: 56px 48px 40px;
}

.mark svg { width: 42px; height: 42px; }

.login-form h1 {
    margin: 18px 0 8px;
    font-size: 32px;
    font-weight: 700;
}

.lead {
    margin: 0 0 28px;
    color: #6b7280;
    font-size: 14px;
    max-width: 360px;
}

.field {
    position: relative;
    display: block;
    margin-bottom: 14px;
}

.field input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #f3f6fb;
    padding: 0 42px 0 16px;
    font-size: 13px;
    outline: none;
}

.field input:focus { box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }

.field i,
.field .eye {
    position: absolute;
    right: 8px;
    top: 8px;
    color: #98a2b3;
    font-style: normal;
    font-size: 14px;
}

.field .person {
    position: absolute;
    width: 18px;
    height: 18px;
    right: 14px;
    top: 15px;
    pointer-events: none;
}

.field .eye {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.field .eye svg { display: none; }
.field .eye .eye-open { display: block; }
.field .eye.is-on .eye-open { display: none; }
.field .eye.is-on .eye-off { display: block; }

.field .eye:hover { color: #111; background: rgba(17, 17, 17, .05); }

.row-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 16px;
    font-size: 13px;
}

.check { color: #475467; display: flex; gap: 8px; align-items: center; }

.link {
    border: 0;
    background: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.btn-login, .btn-google {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-login {
    border: 0;
    background: #111;
    color: #fff;
}

.btn-google {
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover, .btn-google:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.btn-login:active, .btn-google:active { transform: translateY(0) scale(.98); }

.or {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: #98a2b3;
    margin: 18px 0;
    font-size: 13px;
}

.or:before, .or:after { content: ""; height: 1px; background: #eceff3; }

.signup { text-align: center; color: #667085; font-size: 13px; margin-top: 22px; }
.form-error { color: #dc2626; font-size: 13px; margin: 0 0 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.login-art { position: relative; background: #f7f8fb; }

.shape {
    position: absolute;
    background-image: url('../img/login-silk.jpg');
    background-repeat: no-repeat;
    background-size: 560px 760px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    animation: floaty 7s ease-in-out infinite;
}

.s1 { width: 150px; height: 320px; border-radius: 999px; left: 8%; top: 8%; background-position: 0 0; }
.s2 { width: 132px; height: 280px; border-radius: 999px; left: 40%; top: 4%; background-position: -180px -40px; animation-delay: -1.5s; }
.s3 { width: 108px; height: 108px; border-radius: 50%; right: 8%; top: 10%; background-position: -360px 0; animation-delay: -3s; }
.s4 { width: 128px; height: 250px; border-radius: 999px; right: 10%; top: 32%; background-position: -80px -220px; animation-delay: -2s; }
.s5 { width: 118px; height: 230px; border-radius: 999px; left: 36%; top: 48%; background-position: -240px -260px; animation-delay: -4s; }
.s6 { width: 96px; height: 96px; border-radius: 50%; left: 12%; bottom: 10%; background-position: -300px -420px; }
.s7 { width: 86px; height: 86px; border-radius: 50%; left: 46%; bottom: 8%; background-position: -140px -480px; animation-delay: -2.5s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.gate {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 17, 17, .46);
    backdrop-filter: blur(10px);
}

.gate-card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 32px 28px 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    animation: rise .45s ease;
}

.gate-card h2 {
    margin: 8px 0 6px;
    font-size: 24px;
}

.gate-card p {
    margin: 0 0 22px;
    color: #667085;
    font-size: 14px;
}

.gate-card label {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    color: #667085;
}

.gate-card select {
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #f3f6fb;
    padding: 0 14px;
    font-size: 13px;
    color: #171a21;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
    .login-card { grid-template-columns: 1fr; min-height: 0; }
    .login-art { display: none; }
    .login-form { padding: 36px 22px; }
    .login-form h1 { font-size: 26px; }
}
