.yh-auth-page {
    --ya-blue: #82aeda;
    --ya-orange: #f07c2d;
    --ya-green: #9ec33b;
    --ya-ink: #1a1c1e;
    --ya-muted: #6b7280;
    --ya-line: #e7e7e7;
    --ya-bg: #f7f9fb;
    --ya-panel: #ffffff;
    min-height: calc(100vh - 60px);
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(130, 174, 218, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 45% at 90% 10%, rgba(158, 195, 59, 0.14), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(240, 124, 45, 0.10), transparent 55%),
        var(--ya-bg);
    font-family: "NinoMedium", "Noto Sans Georgian", Arial, sans-serif;
    color: var(--ya-ink);
    padding: 28px 16px 88px;
    box-sizing: border-box;
}
.yh-auth-wrap {
    width: min(440px, 100%);
    margin: 0 auto;
}
.yh-auth-panel {
    background: var(--ya-panel);
    border: 1px solid var(--ya-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(26, 28, 30, 0.06);
}
.yh-auth-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--ya-blue), var(--ya-orange), var(--ya-green));
}
.yh-auth-body {
    padding: 28px 22px 24px;
}
.yh-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.yh-auth-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.yh-auth-brand strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.yh-auth-brand span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--ya-muted);
}
.yh-auth-title {
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ya-ink);
}
.yh-auth-form .form-group {
    margin-bottom: 14px;
}
.yh-auth-form label,
.yh-auth-form .control-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 400;
    color: var(--ya-ink);
}
.yh-auth-form .form-control {
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--ya-line);
    box-shadow: none;
    font-size: 16px;
    color: var(--ya-ink);
    background: #fff;
    padding: 10px 14px;
}
.yh-auth-form .form-control:focus {
    border-color: var(--ya-blue);
    box-shadow: 0 0 0 3px rgba(130, 174, 218, 0.22);
    outline: none;
}
.yh-password-field {
    position: relative;
}
.yh-auth-form .yh-password-field .form-control {
    padding-right: 52px;
}
.yh-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ya-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.yh-password-toggle:hover,
.yh-password-toggle:focus {
    background: #f2f5f7;
    color: var(--ya-ink);
    outline: none;
}
.yh-password-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(130, 174, 218, 0.28);
}
.yh-password-group > .form-control-feedback {
    right: 42px;
}
.yh-auth-form .checkbox {
    margin: 8px 0 18px;
}
.yh-auth-form .checkbox label {
    font-size: 13px;
    color: var(--ya-muted);
    font-weight: 400;
}
.yh-auth-form .alert {
    border-radius: 10px;
    border: 0;
    font-size: 13px;
}
.yh-auth-form .alert-danger {
    background: #fff1f0;
    color: #a33;
}
.yh-auth-form .alert-info {
    background: #f3f8fc;
    color: var(--ya-ink);
    border: 1px solid rgba(130, 174, 218, 0.35);
    margin-bottom: 16px;
}
.yh-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--ya-ink);
    color: #fff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.yh-auth-submit:hover,
.yh-auth-submit:focus {
    background: #000;
    color: #fff !important;
    text-decoration: none;
}
.yh-auth-submit:active {
    transform: scale(0.99);
}
.yh-auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    font-size: 14px;
}
.yh-auth-links a {
    color: var(--ya-blue);
    text-decoration: none;
}
.yh-auth-links a:hover {
    color: var(--ya-orange);
    text-decoration: underline;
}
.yh-auth-switch {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--ya-line);
    color: var(--ya-muted);
    font-size: 14px;
}
.yh-auth-switch a {
    color: var(--ya-ink);
    font-weight: 600;
    text-decoration: none;
}
.yh-auth-switch a:hover {
    color: var(--ya-blue);
}

/* Logged-in welcome */
.yh-auth-welcome {
    width: min(560px, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 20px 8px 8px;
}
.yh-auth-welcome-devanagari {
    margin: 0 0 8px;
    font-family: "Noto Sans Devanagari", "Noto Sans", "Mangal", serif;
    font-size: clamp(42px, 12vw, 64px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--ya-blue), var(--ya-orange), var(--ya-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.yh-auth-welcome-ka {
    margin: 0 0 6px;
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 700;
    color: var(--ya-ink);
}
.yh-auth-welcome-note {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--ya-muted);
    line-height: 1.45;
}
.yh-auth-welcome-picture {
    display: block;
    width: min(100%, 360px);
    margin: 0 auto;
}
.yh-auth-welcome-picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 1px solid var(--ya-line);
    background: #eef2f5;
}
@media (max-width: 767px) {
    .yh-auth-welcome-picture {
        width: min(100%, 300px);
    }
}

@media (min-width: 768px) {
    .yh-auth-page {
        padding: 48px 24px 64px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    .yh-auth-body {
        padding: 36px 32px 28px;
    }
    .yh-auth-title {
        font-size: 30px;
    }
}

/* Keep register JS feedback readable inside new layout */
.yh-auth-form #MailError,
.yh-auth-form #MailError2,
.yh-auth-form #PswdError,
.yh-auth-form #PswdError2,
.yh-auth-form #MobilError,
.yh-auth-form #MobilError2 {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}
#RegisterOk .alert {
    border-radius: 10px;
    margin-bottom: 16px;
}
