html, body {
    height: 100%;
}

.panel-body {
    margin: 0;
    background: #000;
    color: #fff;
}

.panel-login {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.panel-neurons {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.panel-neurons canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.panel-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 10px;
}

.panel-body.panel-has-scroll .panel-inner {
    padding-top: 70px;
}

.panel-card {
    width: min(520px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 26px 22px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
    position: relative;
}

.panel-top {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.panel-lang-fixed {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 100;
    background: #fff;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.panel-lang-fixed:hover,
.panel-lang-fixed[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.9);
}

.panel-top-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-top-arrow svg {
    display: block;
}

@media (min-width: 1000px) {
    .panel-top {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
}


.panel-top-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #000;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    justify-content: center;
}

.panel-top-arrow { 
    margin-bottom: 0.5px;
    font-size: 14px;
    line-height: 1;
    opacity: 1;
}

.panel-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.panel-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.panel-brand {
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 10px;
    opacity: 0.9;
    margin-bottom: 0;
    max-width: 75%;
}

.panel-title {
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 18px 0;
    max-width: 75%;
}

.panel-form {
    display: grid;
    gap: 14px;
}

.panel-form .panel-btn {
    margin-bottom: 0;
}

.panel-link-toggle {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: neue-haas-grot-text-roman, sans-serif;
    font-size: 12px;
    text-align: left;
    justify-self: start;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.panel-link-toggle.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.panel-ref-field {
    margin-top: 2px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.panel-ref-field.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.panel-link-toggle-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.75);
    transform: rotate(45deg);
    display: inline-block;
}

.panel-field {
    display: grid;
    gap: 8px;
}

.panel-label {
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-weight: 600;
    font-size: 12px;
    opacity: 0.9;
}

.panel-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    outline: none;
    font-family: neue-haas-grot-text-roman, sans-serif;
    font-size: 14px;
}

.panel-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

@keyframes panelSpin {
    to { transform: rotate(360deg); }
}

.panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #fff;
    color: #000;
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.panel-btn__label {
    display: inline-flex;
}

.panel-btn__spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.22);
    border-top-color: #000;
    border-radius: 50%;
    animation: panelSpin 0.8s linear infinite;
}

.panel-forgot-link {
    margin-top: 2px;
    font-family: neue-haas-grot-text-roman, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    justify-self: start;
    text-align: left;
    padding-left: 2px;
}

.panel-error {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    font-family: neue-haas-grot-text-roman, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
}

.panel-message-text {
    margin: 0 0 20px 0;
    font-family: neue-haas-grot-text-roman, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.panel-message-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 20px 0;
}

.panel-message-actions .panel-btn {
    min-width: 120px;
    padding-left: 20px;
    padding-right: 20px;
}

.panel-btn--block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.panel-btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.panel-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}
