﻿.auth-body,
.auth-body *,
.auth-body *::before,
.auth-body *::after {
    box-sizing: border-box;
}

html,
.auth-body {
    height: 100%;
}

.auth-body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e8eef6;
    background-color: #0b1d33;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #12345a 0%, #0b1d33 55%, #07121f 100%);
}

.auth-bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    will-change: transform;
}

.auth-bg__blob--1 {
    width: 520px;
    height: 520px;
    top: -140px;
    left: -120px;
    background: #2098d1;
    animation: auth-float-1 18s ease-in-out infinite alternate;
}

.auth-bg__blob--2 {
    width: 460px;
    height: 460px;
    bottom: -160px;
    right: -100px;
    background: #6f42c1;
    animation: auth-float-2 22s ease-in-out infinite alternate;
}

.auth-bg__blob--3 {
    width: 340px;
    height: 340px;
    top: 45%;
    left: 55%;
    background: #17c3b2;
    opacity: 0.35;
    animation: auth-float-3 26s ease-in-out infinite alternate;
}

.auth-bg__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}

@keyframes auth-float-1 {
    to {
        transform: translate(120px, 80px) scale(1.1);
    }
}

@keyframes auth-float-2 {
    to {
        transform: translate(-140px, -60px) scale(1.15);
    }
}

@keyframes auth-float-3 {
    to {
        transform: translate(-180px, -120px) scale(0.9);
    }
}

.auth-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    margin-bottom: 30vh;
    padding: 40px 32px 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: auth-rise 0.5s ease-out both;
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.auth-logo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 16px;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #2098d1 0%, #6f42c1 100%);
    box-shadow: 0 10px 24px rgba(32, 152, 209, 0.35);
}

.auth-logo__text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #fff;
}

.auth-logo__text b {
    font-weight: 700;
}

.auth-alert {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 107, 107, 0.35);
    border-radius: 12px;
    font-size: 0.875rem;
    color: #ffc9c9;
    background: rgba(255, 107, 107, 0.12);
}

.auth-alert i {
    margin-right: 10px;
    color: #ff8787;
}

.auth-input {
    position: relative;
    margin-bottom: 14px;
}

.auth-input > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: rgba(232, 238, 246, 0.5);
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input input::placeholder {
    color: rgba(232, 238, 246, 0.45);
}

.auth-input input:focus {
    border-color: #2098d1;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(32, 152, 209, 0.2);
}

.auth-input input:focus + .auth-input__toggle,
.auth-input:focus-within > i {
    color: #7cc8ef;
}

.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #17324f inset;
    caret-color: #fff;
    transition: background-color 9999s ease-out 0s;
}

.auth-input__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: rgba(232, 238, 246, 0.5);
    background: transparent;
    cursor: pointer;
}

.auth-input__toggle:hover {
    color: #fff;
}

.auth-input__toggle:focus {
    outline: none;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-top: 22px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    background: linear-gradient(135deg, #2098d1 0%, #6f42c1 100%);
    box-shadow: 0 10px 26px rgba(32, 152, 209, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.auth-submit i {
    margin-left: 10px;
    transition: transform 0.15s ease;
}

.auth-submit:hover {
    box-shadow: 0 14px 30px rgba(32, 152, 209, 0.45);
}

.auth-submit:hover i {
    transform: translateX(3px);
}

.auth-submit:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(124, 200, 239, 0.35);
}

@media (max-width: 420px) {
    .auth-card {
        padding: 32px 22px 28px;
    }

    .auth-bg__blob {
        filter: blur(60px);
    }
}

@media (max-height: 640px) {
    .auth-card {
        margin-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-bg__blob,
    .auth-card {
        animation: none;
    }
}
