.auth-container {
    max-width: 480px;
    margin: 60px auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px var(--shadow-color),
        inset 0 0 24px rgba(127, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.neon-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-1);
    text-shadow: 0 0 12px var(--primary-1),
        0 0 24px var(--primary-2);
    animation: neon-glow 1.5s ease-in-out infinite;
}

@keyframes neon-glow {

    0%,
    100% {
        text-shadow: 0 0 12px var(--primary-1), 0 0 24px var(--primary-2);
    }

    50% {
        text-shadow: 0 0 24px var(--primary-1), 0 0 36px var(--primary-2);
    }
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-lighter);
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-1);
    box-shadow: 0 0 16px var(--primary-1),
        inset 0 1px 3px rgba(255, 255, 255, 0.1);
    background: rgba(127, 255, 255, 0.03);
}

.input-container {
    position: relative;
}

.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(var(--primary-1), var(--primary-2));
    border-radius: 12px 0 0 12px;
}

.neon-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, var(--primary-1), var(--primary-2));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.4s;
    margin-top: 12px;
}

.neon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(127, 255, 255, 0.3),
        0 8px 32px rgba(255, 127, 255, 0.4);
}

.btn-text {
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-lighter);
    transition: color 0.2s;
    text-shadow: 0 0 4px var(--text-lighter);
    /* background: linear-gradient(45deg, var(--primary-1), var(--primary-2)); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

.neon-btn:hover .btn-glow {
    opacity: 1;
}

.error-message {
    background: rgba(255, 127, 127, 0.1);
    border: 2px solid var(--primary-2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px);
    animation: shake 0.5s ease;
}

.error-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.error-text {
    color: var(--primary-2);
    font-weight: 500;
}

@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 24px;
    }

    .neon-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }

    .form-input {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .form-group:nth-last-child(2) {
        margin-bottom: 2rem;
    }
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-light);
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-lighter);
}

.form-input.invalid {
    border-color: var(--primary-2);
    animation: shake 0.5s ease;
}

.neon-btn.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.neon-btn.loading::after {
    content: "◌";
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 1s linear infinite;
    font-size: 1.2em;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}