.authSection {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.authSection::after {
    content: '';
    position: absolute;
    inset: 12% auto auto 55%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0));
    filter: blur(90px);
    opacity: 0.8;
    pointer-events: none;
}

.authContainer {
    justify-content: center;
    align-items: center;
}

.authSection > .flexContainer {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.authCard {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    box-shadow: 0 24px 70px -32px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    padding: 2.75rem;
    max-width: 540px;
    width: 100%;
    gap: 1.1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.authCard::before {
    content: '';
    position: absolute;
    inset: -40% auto auto 55%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.28), rgba(14, 165, 233, 0));
    filter: blur(90px);
    opacity: 0.75;
    pointer-events: none;
}

.authCard h1 {
    margin-bottom: 0.35rem;
}

.authCard p {
    color: #3b4c66;
}

.authForm {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
}

.authForm label {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.authForm input[type="email"],
.authForm input[type="password"],
.authForm input[type="text"] {
    padding: 0.95rem 1.05rem;
    border: 1px solid #d6dfec;
    border-radius: 14px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 30px -18px rgba(15, 23, 42, 0.4);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.authForm input[type="email"]:focus,
.authForm input[type="password"]:focus,
.authForm input[type="text"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 14px 30px -18px rgba(15, 23, 42, 0.4);
    transform: translateY(-1px);
}

.authInputWrap {
    position: relative;
    display: flex;
    align-items: center;
}

.authInputWrap input {
    width: 100%;
    padding-right: 3.35rem;
}

.passwordToggle {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid #d6dfec;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.94);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.25);
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.passwordToggle svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.passwordToggle .icon-eye-off {
    display: none;
}

.passwordToggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

.passwordToggle:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1d4ed8;
}

.passwordToggle:active {
    transform: translateY(-50%) scale(0.98);
}

.passwordToggle[aria-pressed="true"] {
    background: rgba(37, 99, 235, 0.12);
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 12px 30px -20px rgba(37, 99, 235, 0.4);
}

.passwordToggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.passwordToggle[aria-pressed="true"] .icon-eye-off {
    display: block;
}

.authRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: #475569;
}

.authCheckbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #0f172a;
}

.authCheckbox input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    appearance: none;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 26px -18px rgba(15, 23, 42, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
    position: relative;
}

.authCheckbox input[type="checkbox"]::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 9px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0));
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.authCheckbox input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 0.35rem;
    height: 0.65rem;
    border: 2px solid #ffffff;
    border-top: 0;
    border-left: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg) scale(0.85);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.authCheckbox input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}

.authCheckbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
    box-shadow: 0 12px 30px -18px rgba(37, 99, 235, 0.55), 0 0 0 5px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.authCheckbox input[type="checkbox"]:checked::before {
    opacity: 1;
}

.authCheckbox input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.authHint {
    font-size: 0.9rem;
    color: #94a3b8;
}

.authButton {
    margin-top: 0.5rem;
    padding: 0.95rem 1.2rem;
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 16px 40px -22px rgba(37, 99, 235, 0.4), 0 8px 18px -12px rgba(15, 23, 42, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.authButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px -18px rgba(37, 99, 235, 0.45), 0 8px 18px -10px rgba(15, 23, 42, 0.4);
}

.authAlert {
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(254, 242, 242, 0.9);
    color: #b91c1c;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    box-shadow: 0 12px 28px -18px rgba(185, 28, 28, 0.3);
}

.authSubtle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media only screen and (max-width: 640px) {
    .authSection {
        padding: 4rem 0;
    }

    .authCard {
        padding: 2.2rem;
    }
}
