.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
    position: relative;
}

.auth-body::before,
.auth-body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    pointer-events: none;
}

.auth-body::before {
    width: clamp(360px, 48vw, 520px);
    height: clamp(360px, 48vw, 520px);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
    top: -18%;
    left: -10%;
}

.auth-body::after {
    width: clamp(300px, 42vw, 460px);
    height: clamp(300px, 42vw, 460px);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4), transparent 70%);
    bottom: -12%;
    right: -8%;
}

.auth-layout {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.auth-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(34, 211, 238, 0.85));
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3.5rem);
    color: #f8fafc;
    display: grid;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-highlight::after,
.auth-highlight::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(40px);
    opacity: 0.75;
}

.auth-highlight::before {
    width: 260px;
    height: 260px;
    top: -120px;
    right: -60px;
}

.auth-highlight::after {
    width: 220px;
    height: 220px;
    bottom: -120px;
    left: -80px;
}

.auth-highlight h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    max-width: 18ch;
}

.auth-highlight p {
    font-size: 1.05rem;
    max-width: 30ch;
    color: rgba(241, 245, 249, 0.92);
}

.auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.auth-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.22);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-card {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(calc(var(--blur-amount) + 8px));
    display: grid;
    gap: 1.5rem;
}

.auth-card h2 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.auth-card .auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-divider {
    text-align: center;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(148, 163, 184, 0.3);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-meta {
    display: grid;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    inset: 0.6rem 0.75rem auto auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.role-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.role-option {
    flex: 1 1 140px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: transform 0.3s var(--transition), border 0.3s var(--transition), box-shadow 0.3s var(--transition);
    position: relative;
    overflow: hidden;
}

.role-option input {
    display: none;
}

.role-option::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.18));
    opacity: 0;
    transition: opacity 0.3s var(--transition);
}

.role-option span {
    position: relative;
    z-index: 1;
}

.role-option:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.role-option.selected {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--shadow-md);
}

.role-option.selected::after {
    opacity: 1;
}

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
.particles-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    animation: float linear infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -50px);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 20px);
        opacity: 0.4;
    }
}

/* ===== ANIMATED LOGO ===== */
.auth-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo-circle {
    animation: logoFloat 3s ease-in-out infinite;
}

.auth-logo-circle svg {
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.4));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== BADGE ANIMATIONS ===== */
.badge-animated {
    display: inline-flex;
    align-items: center;
    animation: badgeSlideIn 0.6s ease-out backwards;
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TITLE & DESCRIPTION ANIMATIONS ===== */
.auth-title-animated {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.auth-description-fade {
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

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

/* ===== LIVE STATS ===== */
.auth-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.auth-stat-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out backwards;
}

.auth-stat-item:nth-child(1) { animation-delay: 0.6s; }
.auth-stat-item:nth-child(2) { animation-delay: 0.7s; }
.auth-stat-item:nth-child(3) { animation-delay: 0.8s; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(241, 245, 249, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== ENHANCED META ITEMS ===== */
.auth-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.6s ease-out backwards;
}

.auth-meta-item:nth-child(1) { animation-delay: 0.9s; }
.auth-meta-item:nth-child(2) { animation-delay: 1s; }
.auth-meta-item:nth-child(3) { animation-delay: 1.1s; }

.meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== CARD SLIDE-IN ANIMATION ===== */
.card-slide-in {
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CARD HEADER WITH STATUS ===== */
.auth-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== ENHANCED FORM GROUPS ===== */
.form-group-enhanced {
    position: relative;
}

.form-group-enhanced .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group-enhanced .form-label svg {
    opacity: 0.7;
}

.input-enhanced {
    transition: all 0.3s var(--transition);
}

.input-enhanced:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.input-border-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s var(--transition);
}

.input-focused .input-border-animation {
    transform: scaleX(1);
}

/* ===== PASSWORD STRENGTH INDICATOR ===== */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s var(--transition);
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== FORM OPTIONS (CHECKBOX + LINK) ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
}

.link-hover {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.link-hover::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition);
}

.link-hover:hover::after {
    transform: scaleX(1);
}

/* ===== ENHANCED BUTTON ===== */
.btn-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--transition);
}

.btn-enhanced::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
}

.btn-enhanced:hover::before {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

.btn-enhanced:active {
    opacity: 0.9;
}

/* ===== ANIMATED LINK ===== */
.link-animated {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--transition);
}

.link-animated svg {
    transition: transform 0.3s var(--transition);
}

.link-animated:hover svg {
    transform: translateX(4px);
}

/* ===== TRUST INDICATORS ===== */
.auth-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.trust-item svg {
    color: #10b981;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-body { padding: clamp(1.5rem, 6vw, 3rem); }
    .auth-footer { justify-content: center; text-align: center; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-highlight { order: 2; text-align: center; }
    .auth-highlight p { margin: 0 auto; }

    .auth-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .auth-trust {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .auth-logo-container {
        margin-bottom: 1rem;
    }

    .auth-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ПРОФЕССИОНАЛЬНЫЕ УЛУЧШЕНИЯ ========== */

/* Accessibility support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Улучшенный auth-layout */
.auth-layout {
    animation: fadeInScale 0.8s ease-out;
}

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

/* Улучшенная auth-card с hover эффектом */
.auth-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.3);
}

/* Улучшенные auth-badges с анимацией */
.auth-badge {
    transition: all 0.3s var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.auth-badge::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.auth-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.auth-badge:hover::before {
    width: 200px;
    height: 200px;
}

/* Анимация для auth-stats items */
.auth-stat-item {
    position: relative;
    transition: all 0.3s var(--transition);
}

.auth-stat-item:hover {
    transform: translateY(-5px);
}

.auth-stat-item:hover .stat-number {
    animation: numberPulse 0.5s ease-out;
}

@keyframes numberPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Улучшенная role-option с ripple эффектом */
.role-option {
    position: relative;
    overflow: hidden;
}

.role-option::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.role-option:hover::before {
    width: 300%;
    height: 300%;
}

.role-option.selected {
    animation: selectBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes selectBounce {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* Анимация для password-strength */
.password-strength {
    animation: slideIn 0.3s ease-out;
}

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

.strength-bar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

/* Улучшенный auth-footer */
.auth-footer {
    transition: all 0.3s var(--transition);
    animation: fadeIn 0.6s ease-out 0.8s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-footer a:hover {
    transform: translateX(5px);
    display: inline-block;
}

/* Улучшенные form inputs */
.form-control,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

/* Trust indicators animation */
.trust-item {
    transition: all 0.3s var(--transition);
    animation: fadeIn 0.6s ease-out backwards;
}

.trust-item:nth-child(1) { animation-delay: 1s; }
.trust-item:nth-child(2) { animation-delay: 1.1s; }
.trust-item:nth-child(3) { animation-delay: 1.2s; }

.trust-item:hover {
    transform: translateY(-3px);
}

.trust-item svg {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Улучшенный password toggle button */
.password-toggle {
    transition: all 0.3s var(--transition);
}

.password-toggle:hover {
    transform: rotate(10deg);
    color: var(--primary-color);
}

/* Checkbox/Radio custom animations */
input[type="checkbox"]:checked + .checkbox-custom {
    animation: checkScale 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkScale {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Enhanced loading spinner */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.4);
    animation: spin 1.5s linear infinite reverse;
}

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

/* Success/Error animations для alerts */
.alert-success {
    animation: slideInRight 0.4s ease-out, successPulse 0.6s ease-out 0.4s;
}

.alert-danger {
    animation: slideInRight 0.4s ease-out, errorShake 0.5s ease-out 0.4s;
}

@keyframes successPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Stagger animation для form fields */
.form-group {
    animation: formFieldSlide 0.5s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.5s; }
.form-group:nth-child(2) { animation-delay: 0.55s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }
.form-group:nth-child(4) { animation-delay: 0.65s; }
.form-group:nth-child(5) { animation-delay: 0.7s; }
.form-group:nth-child(6) { animation-delay: 0.75s; }
.form-group:nth-child(7) { animation-delay: 0.8s; }
.form-group:nth-child(8) { animation-delay: 0.85s; }

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

/* Submit button shine effect */
.btn-primary[type="submit"] {
    position: relative;
    overflow: hidden;
}

.btn-primary[type="submit"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

/* Micro-interactions для auth-meta */
.auth-meta div {
    transition: all 0.3s var(--transition);
    cursor: default;
}

.auth-meta div:hover {
    transform: translateX(5px);
    color: #f8fafc;
}

/* Enhanced auth-highlight */
.auth-highlight {
    position: relative;
    overflow: hidden;
}

.auth-highlight::before {
    animation: blobMove 10s ease-in-out infinite;
}

.auth-highlight::after {
    animation: blobMove 12s ease-in-out infinite reverse;
}

@keyframes blobMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(20px, -20px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
}

/* Grid pattern overlay на auth-card */
.auth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 25px 25px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

/* Enhanced divider */
.auth-divider {
    position: relative;
    animation: fadeIn 0.6s ease-out 0.9s backwards;
}

.auth-divider::before,
.auth-divider::after {
    transition: all 0.3s var(--transition);
}

.auth-card:hover .auth-divider::before {
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: dividerGrow 2s ease-in-out infinite;
}

.auth-card:hover .auth-divider::after {
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: dividerGrow 2s ease-in-out infinite 1s;
}

@keyframes dividerGrow {
    0%, 100% {
        width: 30%;
    }
    50% {
        width: 35%;
    }
}

/* ========== КОНЕЦ ДОПОЛНИТЕЛЬНЫХ УЛУЧШЕНИЙ ========== */

/* ========== DARK THEME SUPPORT ========== */
[data-theme="dark"] .auth-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .auth-body::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
}

[data-theme="dark"] .auth-body::after {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%);
}

[data-theme="dark"] .auth-card {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .auth-card:hover {
    box-shadow: 0 30px 70px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .particle {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(30, 41, 59, 0.95) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] .input-enhanced,
[data-theme="dark"] .form-control {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(99, 102, 241, 0.3);
    color: #e2e8f0;
}

[data-theme="dark"] .input-enhanced:focus,
[data-theme="dark"] .form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .password-toggle {
    color: #94a3b8;
}

[data-theme="dark"] .password-toggle:hover {
    color: #6366f1;
}

[data-theme="dark"] .checkbox-custom {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .link-hover,
[data-theme="dark"] .link-animated {
    color: #818cf8;
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
    background: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .auth-trust {
    border-top-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .auth-card::after {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}
/* ========== END DARK THEME ========== */
