.auth-link { 
    margin-top: 14px; 
}

.auth-link a { 
    color: var(--muted); 
    text-decoration: none; 
}

.auth-link a:hover { 
    text-decoration: underline; 
}

.login-landing { 
    text-align: left; 
    z-index: 10; 
}

.auth { 
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    z-index: 100;
    position: relative;
}

.auth h2 { 
    margin: 0 0 16px; 
    font-size: 28px; 
}

.form .fields { 
    gap: 30px; 
    margin-bottom: 16px; 
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
}

.form .field { 
    gap: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form label { 
    font-size: 16px; 
    font-weight: 600;
    color: var(--text); 
}

.form input { 
    width: 100%; 
    padding: 12px 0; 
    border: none;
    background: transparent; 
    outline: none; 
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    font-family: 'Jost', ui-sans-serif, system-ui;
}

.form input::placeholder {
    color: var(--muted);
    font-size: 20px;
    font-weight: 600;
}

/* Стили для сообщений об ошибках */
.auth .errorlist.nonfield,
.form .errorlist.nonfield,
.errorlist.nonfield {
    list-style: none;
    padding: 16px 20px;
    margin: 0;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 10px;
    color: #ff4757;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
    width: 500px;
    max-width: calc(100vw - 40px);
    animation: fadeInScale 0.4s ease;
    position: fixed !important;
    right: 20px !important;
    top: 30px !important;
    z-index: 10000 !important;
    transform: none !important;
    isolation: isolate;
}

.errorlist.nonfield li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form input:focus {
    border-bottom-color: var(--text);
}

.content {
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    position: relative;
}

.headline {
    font-size: clamp(28px, 7vw, 90px);
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.cta {
    display: inline-block;
    padding: 12px 150px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
    background: #121212;
    color: #ffffff;
    border: 0px solid;
    border: 1px solid #272727;
    z-index: 1000;
    margin-top: 10px;
    width: 100%;
    font-family: 'Jost', ui-sans-serif, system-ui;
    cursor: pointer;
}

.toggle-hero .shere { 
    position: relative; 
    z-index: 1; 
    filter: blur(60px) contrast(150%); 
}

.toggle-hero .tagcloud { 
    pointer-events: none; 
    user-select: none; 
    -webkit-user-select: none; 
}

/* Ring styles (shared for login/register/takemic) */
.toggle-hero .ring-wrap {
    position: relative;
    width: 1200px;
    height: 600px;
    filter: blur(40px) contrast(150%);
}
.toggle-hero .ring-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
}
.toggle-hero .ring-wrap #ring {
    stroke: #000bff !important;
    filter: drop-shadow(0 1px 4px #000bff);
}

.tagcloud {
    font-family: 'Jost', ui-sans-serif, system-ui;
    font-size: 30px;
    font-weight: 600;
    text-shadow: 0 1px 4px #000bff, 0 0 12px #000bff, 0 0 28px #000bff, 0 0 50px #000bff, 0 0 90px #000bff, 0 0 140px #000bff, 0 0 180px #000bff, 0 0 225px #000bff, 0 0 270px #000bff;
}

.tagcloud--item:hover { 
    opacity: .85; 
}

.toggle-hero { 
    position: absolute;
    top: 4%;
    right: 48%;
    transform: translateX(50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-hero .sphere-overlay { 
    position: absolute; 
    inset: 0; 
    display: grid; 
    place-items: center; 
    pointer-events: none; 
    z-index: 2; 
}

.sphere-title { 
    pointer-events: none; 
    position: absolute; 
    top: 30%; 
    transform: translateY(-50%);
    font-family: 'Jost', ui-sans-serif, system-ui; 
    font-weight: 700; 
    font-size: 56px; 
    color: var(--text);
    text-align: center;
    margin: 0px;
}

.sphere-toggle { 
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 60px;
    border-radius: 999px;
    background: #00000087;
    border: 1px solid #202020;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    cursor: pointer;
    z-index: 3;
}

.sphere-toggle .knob { 
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #dadada;
    transform: translateX(0);
    transition: transform 0.22s ease;
}

.sphere-toggle[aria-pressed="true"] .knob { 
    transform: translateX(44px); 
    background: linear-gradient(180deg, #2ed573, #1e7e34); 
    box-shadow: 0 0 12px rgba(46,213,115,0.6), 0 0 24px rgba(46,213,115,0.3); 
}

.sphere-hint { 
    pointer-events: none; 
    position: absolute; 
    top: 60%; 
    transform: translateY(-50%);
    font-family: 'Jost', ui-sans-serif, system-ui; 
    font-weight: 500; 
    font-size: 16px; 
    color: #9a9a9a; 
    text-align: center;
}

/* плавное появление/исчезновение заголовка и формы через scale+opacity */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOutScale {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.96); }
}

/* начальное состояние и появление */
.login-landing .headline,
.auth {
    opacity: 0;
    transform: scale(0.96);
}

.login-landing .headline {
    animation: fadeInScale 1s ease 0.6s forwards;
}

.auth {
    animation: fadeInScale 1s ease 0.6s forwards;
    animation-delay: 0.1s;
}

/* утилита для обратной анимации, если будет нужна из JS */
.fade-out-scale {
    animation: fadeOutScale 1s ease 0s forwards;
}