.rygl-shell {
    width: 100%;
    min-height: 720px;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background: transparent;
    color: #fff;
    font-family: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rygl-card {
    width: min(550px, 100%);
    position: relative;
    overflow: hidden;
    padding: 46px 52px 26px;
    border: 1px solid rgba(42, 106, 184, .32);
    border-radius: 10px;
    background:
        radial-gradient(circle at 0 18%, rgba(0, 99, 227, .20), transparent 32%),
        radial-gradient(circle at 100% 100%, rgba(12, 37, 150, .35), transparent 34%),
        linear-gradient(135deg, #02070e 0%, #06111f 46%, #030511 100%);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .46),
        inset 0 0 55px rgba(0, 99, 227, .06);
}

.rygl-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(73, 159, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73, 159, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: .42;
    pointer-events: none;
}

.rygl-logo {
    position: relative;
    z-index: 2;
    width: 170px;
    max-width: 72%;
    height: auto;
    display: block;
    margin: 0 0 34px;
    object-fit: contain;
}

.rygl-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
    font-weight: 900;
    letter-spacing: .02em;
}

.rygl-brand span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1196ff, #1058ff);
    color: #fff;
    font-size: 23px;
}

.rygl-brand strong {
    color: #fff;
    font-size: 17px;
    line-height: 1;
}

.rygl-card h1,
.rygl-card p,
.rygl-card a,
.rygl-card small,
.rygl-error,
.rygl-login-form,
.rygl-divider,
.rygl-register {
    position: relative;
    z-index: 2;
}

.rygl-card h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(29px, 5vw, 36px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
}

.rygl-card h1 span {
    color: #0063e3;
}

.rygl-card h1::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 16px;
    border-radius: 999px;
    background: #0063e3;
    box-shadow: 0 0 18px rgba(0, 99, 227, .62);
}

.rygl-card p {
    margin: 0 0 25px;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.55;
}

.rygl-login-form {
    display: grid;
    gap: 17px;
}

.rygl-field {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.rygl-input-wrap {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    min-height: 48px;
    border: 1px solid rgba(0, 99, 227, .42);
    border-radius: 8px;
    background: rgba(1, 9, 22, .72);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.rygl-input-wrap:focus-within {
    border-color: rgba(0, 99, 227, .9);
    box-shadow: 0 0 0 3px rgba(0, 99, 227, .18);
}

.rygl-input-icon {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .72);
}

.rygl-input-icon svg {
    width: 18px;
    height: 18px;
}

.rygl-field input {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.rygl-field input::placeholder {
    color: rgba(255, 255, 255, .46);
}

.rygl-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: -2px;
    font-size: 12px;
}

.rygl-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .70);
}

.rygl-remember input {
    width: 15px;
    height: 15px;
    accent-color: #0063e3;
}

.rygl-form-row a,
.rygl-register a,
.rygl-register button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0063e3;
    font-weight: 700;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.rygl-form-row a:hover,
.rygl-register a:hover,
.rygl-register button:hover,
.rygl-register button:focus {
    text-decoration: underline;
}

.rygl-submit,
.rygl-google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

.rygl-submit {
    margin-top: 3px;
    border: 1px solid #0063e3;
    background: linear-gradient(90deg, #0b94ff, #1538db);
    color: #fff;
}

.rygl-submit:hover,
.rygl-submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 99, 227, .22);
}

.rygl-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: rgba(255, 255, 255, .54);
    font-size: 12px;
}

.rygl-divider::before,
.rygl-divider::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, .13);
}

.rygl-google-button {
    border: 1px solid rgba(0, 99, 227, .42);
    background: rgba(1, 9, 22, .60);
    color: #fff;
}

.rygl-google-button:hover,
.rygl-google-button:focus {
    transform: translateY(-2px);
    border-color: rgba(0, 99, 227, .9);
    background: rgba(6, 20, 45, .82);
    color: #fff;
    box-shadow: 0 16px 32px rgba(0, 99, 227, .16);
}

.rygl-google-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
}

.rygl-google-icon svg {
    width: 20px;
    height: 20px;
}

.rygl-register {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    text-align: center;
}

.rygl-view {
    animation: ryglViewIn .28s ease both;
}

.rygl-card[data-active-mode="login"] .rygl-view-register,
.rygl-card[data-active-mode="register"] .rygl-view-login {
    display: none;
}

.rygl-card[data-active-mode="register"] .rygl-view-register {
    display: block;
}

.rygl-error {
    margin: 0 0 18px;
    padding: 13px 14px;
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    background: rgba(239, 68, 68, .10);
    color: #fecaca;
    font-size: 13px;
    line-height: 1.4;
}

.rygl-success {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    padding: 13px 14px;
    border-left: 3px solid #22c55e;
    border-radius: 8px;
    background: rgba(34, 197, 94, .10);
    color: #bbf7d0;
    font-size: 13px;
    line-height: 1.4;
}

.rygl-card small {
    display: block;
    margin-top: 36px;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.rygl-notice {
    max-width: 520px;
    margin: 24px auto;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f3f7ff;
    color: #12213f;
    font-weight: 700;
    text-align: center;
}

@keyframes ryglViewIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .rygl-shell {
        min-height: 620px;
        padding: 18px 12px;
    }

    .rygl-card {
        padding: 32px 24px 24px;
        border-radius: 10px;
    }

    .rygl-form-row,
    .rygl-register {
        align-items: flex-start;
        flex-direction: column;
    }
}
