@import url('../styles.css');

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
}

.auth-container {
    position: relative;
    width: min(1040px, 94vw);
    min-height: clamp(520px, 63vw, 700px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(24px, 4vw, 48px);
    margin: 0 auto;
    padding-inline: clamp(16px, 4vw, 48px);
}

.auth-hero {
    position: relative;
    z-index: 1;
    flex: none;
    width: clamp(520px, 60%, 720px);
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: #0f132c;
    box-shadow: 0 32px 68px rgba(8, 12, 32, 0.5);
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: -28px;
    border-radius: 28px;
    background: radial-gradient(120% 120% at 50% 20%, rgba(82, 115, 255, 0.22), rgba(82, 115, 255, 0));
    filter: blur(18px);
    opacity: 0.4;
    pointer-events: none;
}

.auth-hero__media {
    position: relative;
    width: 100%;
    height: 100%;
}

.auth-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}

.auth-hero__overlay {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(8, 12, 32, 0.78) 0%, rgba(8, 12, 32, 0.45) 38%, rgba(8, 12, 32, 0.75) 100%),
        linear-gradient(120deg, rgba(44, 82, 255, 0.22) 0%, rgba(12, 18, 48, 0.62) 55%, rgba(8, 12, 32, 0.88) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.auth-card {
    position: absolute;
    z-index: 2;
    width: clamp(320px, 32vw, 360px);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background-color: #0f132c;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 22px 44px rgba(8, 12, 32, 0.45);
    overflow: hidden;
    top: 50%;
    left: clamp(60%, 62%, 64%);
    transform: translate(-32%, -50%);
}

.auth-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 14px;
    background-image: linear-gradient(165deg, rgba(8, 12, 32, 0.78), rgba(12, 18, 48, 0.62));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    opacity: 0.82;
    pointer-events: none;
}

@media (max-width: 960px) {
    .auth-container {
        align-items: center;
        justify-content: center;
        width: min(480px, 94vw);
        min-height: auto;
        gap: 28px;
        padding-inline: clamp(16px, 6vw, 32px);
    }

    .auth-hero {
        width: 100%;
        max-width: none;
    }

    .auth-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        box-shadow: 0 22px 44px rgba(8, 12, 32, 0.45);
    }
}

.auth-card__header,
.auth-card__footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.auth-card__title {
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.auth-card__description,
.auth-card__note {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
}

.auth-card__link,
.auth-form__link {
    color: rgba(126, 166, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-card__link:hover,
.auth-card__link:focus-visible,
.auth-form__link:hover,
.auth-form__link:focus-visible {
    color: #ffffff;
}

.auth-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form__label {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.58);
}

.auth-form__label--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-form__input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 13, 32, 0.68);
    color: #ffffff;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-form__input:focus {
    outline: none;
    border-color: rgba(102, 143, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 143, 255, 0.22);
}

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

.auth-form__input--password {
    padding-right: 84px;
}

.auth-password__toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(126, 166, 255, 0.42);
    background: rgba(102, 143, 255, 0.14);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.auth-password__toggle:hover,
.auth-password__toggle:focus-visible {
    background: rgba(126, 166, 255, 0.22);
    border-color: rgba(126, 166, 255, 0.55);
}

.auth-password__icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.auth-form__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
}

.auth-form__submit {
    align-self: stretch;
    justify-content: center;
}

.cta-button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    text-decoration: none;
    color: #FFFFFF;
    background:
        linear-gradient(135deg, rgba(48, 54, 204, 0.55) 0%, rgba(18, 25, 122, 0.55) 100%),
        radial-gradient(100% 120% at 20% 30%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 80%);
    background-blend-mode: screen;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, filter 0.4s ease;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 140% at 20% 20%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(16, 22, 84, 0.45);
}

.cta-button:hover::after,
.cta-button:focus-visible::after {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(0px) scale(0.985);
    box-shadow: 0 8px 16px rgba(16, 22, 84, 0.4);
    filter: brightness(0.95);
}

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    body {
        padding: clamp(16px, 6vw, 32px);
    }

    .auth-card,
    .auth-hero {
        border-radius: 16px;
    }

    .auth-card::after {
        inset: 6px;
    }

    .auth-form__input--password {
        padding-right: 94px;
    }

    .auth-password__toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
}
