/* AquaSafe authentication — selected Aquatic Welcome split-panel design. */

.as-auth-v3 .as-auth-v3__area {
    padding: var(--as-space-lg) 0 var(--as-space-xl);
    background: #fff;
}

.as-auth-v3 .as-auth-v3__shell {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    max-width: var(--as-content-width);
    min-height: 500px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--as-inner-line);
    border-radius: var(--as-radius);
    background: #fff;
    box-shadow: var(--as-shadow-lg);
}

.as-auth-v3 .as-auth-v3__shell--register {
    min-height: 610px;
}

.as-auth-v3 .as-auth-v3__media {
    display: grid;
    grid-template-rows: 300px minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    background: var(--as-inner-navy);
}

.as-auth-v3 .as-auth-v3__shell--register .as-auth-v3__media {
    grid-template-rows: 380px minmax(0, 1fr);
}

.as-auth-v3 .as-auth-v3__media-image {
    min-height: 0;
    overflow: hidden;
    border-bottom-right-radius: 46% 22%;
    background: var(--as-inner-soft);
}

.as-auth-v3 .as-auth-v3__media-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.as-auth-v3 .as-auth-v3__media-copy {
    padding: var(--as-space-lg);
    color: #fff;
}

.as-auth-v3 .as-auth-v3__media-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--as-space-md);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: var(--as-inner-blue);
    color: #fff;
    font-size: var(--as-text-lg);
}

.as-auth-v3 .as-auth-v3__media-copy h2 {
    max-width: 320px;
    margin: 0 0 var(--as-space-sm);
    color: #fff;
    font-size: var(--as-heading-sm);
    line-height: 1.25;
}

.as-auth-v3 .as-auth-v3__media-copy p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: var(--as-text-md);
    line-height: 1.6;
}

.as-auth-v3 .as-auth-v3__form-panel.singUp-wrap {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: var(--as-space-lg);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.as-auth-v3 .as-auth-v3__heading {
    margin-bottom: var(--as-space-lg);
}

.as-auth-v3 .as-auth-v3__heading .title {
    margin: 0 0 var(--as-space-sm);
    color: var(--as-inner-navy);
    font-size: var(--as-heading-md);
    line-height: 1.2;
}

.as-auth-v3 .as-auth-v3__heading p {
    max-width: 48ch;
    margin: 0;
    color: var(--as-inner-muted);
    font-size: var(--as-text-base);
    line-height: 1.55;
}

.as-auth-v3 .as-auth-v3__form-panel .account__social {
    margin-bottom: var(--as-space-md);
}

.as-auth-v3 .as-auth-v3__form-panel .account__social-btn {
    min-height: 52px;
    border-color: var(--as-inner-line);
    border-radius: var(--as-radius-sm);
    background: #fff;
    font-family: var(--as-font-heading);
    font-size: var(--as-text-md);
    font-weight: 600;
}

.as-auth-v3 .as-auth-v3__form-panel .account__divider {
    margin: var(--as-space-md) 0;
}

.as-auth-v3 .as-auth-v3__form-panel .form-grp {
    margin-bottom: var(--as-space-md);
}

.as-auth-v3 .as-auth-v3__form-panel .form-grp label {
    margin-bottom: var(--as-space-xs);
    color: var(--as-inner-navy);
    font-family: var(--as-font-heading);
    font-size: var(--as-text-md);
    font-weight: 600;
}

.as-auth-v3 .as-auth-v3__form-panel .form-grp label code {
    color: var(--as-inner-red);
}

.as-auth-v3 .as-auth-v3__form-panel .form-grp input {
    width: 100%;
    height: 52px;
    padding: 0 var(--as-space-md);
    border: 1px solid var(--as-inner-line);
    border-radius: var(--as-radius-sm);
    background: #fff;
    color: var(--as-inner-ink);
    font-size: var(--as-text-base);
}

.as-auth-v3 .as-auth-v3__form-panel .form-grp input::placeholder {
    color: var(--as-inner-muted);
}

.as-auth-v3 .as-auth-v3__password {
    position: relative;
}

.as-auth-v3 .as-auth-v3__password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--as-space-md);
}

.as-auth-v3 .as-auth-v3__password input {
    padding-right: 52px;
}

.as-auth-v3 .as-auth-v3__password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--as-inner-muted);
    transform: translateY(-50%);
}

.as-auth-v3 .as-auth-v3__password-toggle:hover {
    color: var(--as-inner-blue);
    background: var(--as-inner-soft);
}

.as-auth-v3 .as-auth-v3__form-panel .account__check {
    align-items: center;
    margin: 2px 0 var(--as-space-lg);
}

.as-auth-v3 .as-auth-v3__form-panel .account__check-remember {
    align-items: center;
}

.as-auth-v3 .as-auth-v3__form-panel .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.as-auth-v3 .as-auth-v3__form-panel .form-check-label,
.as-auth-v3 .as-auth-v3__form-panel .account__check-forgot a {
    font-size: var(--as-text-md);
}

.as-auth-v3 .as-auth-v3__form-panel .account__form > .btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: var(--as-space-sm);
    box-shadow: none;
}

.as-auth-v3 .as-auth-v3__form-panel .account__form > .as-auth-v3__submit {
    width: min(280px, 100%);
    margin-inline: auto;
}

.as-auth-v3 .as-auth-v3__form-panel .account__switch {
    margin-top: var(--as-space-lg);
    text-align: center;
}

.as-auth-v3 .as-auth-v3__form-panel .account__switch p {
    margin: 0;
    color: var(--as-inner-muted);
    font-size: var(--as-text-md);
}

.as-auth-v3 .as-auth-v3__form-panel .account__switch a,
.as-auth-v3 .as-auth-v3__form-panel .account__check-forgot a {
    color: var(--as-inner-blue);
    font-family: var(--as-font-heading);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.as-auth-v3 .as-auth-v3__form-panel .account__switch a:hover,
.as-auth-v3 .as-auth-v3__form-panel .account__check-forgot a:hover {
    color: var(--as-inner-red);
}

@media (max-width: 991px) {
    .as-auth-v3 .as-auth-v3__shell {
        grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    }

    .as-auth-v3 .as-auth-v3__form-panel.singUp-wrap {
        padding: var(--as-space-lg);
    }
}

@media (max-width: 767px) {
    .as-auth-v3 .as-auth-v3__area {
        padding: var(--as-space-lg) 0;
    }

    .as-auth-v3 .as-auth-v3__shell,
    .as-auth-v3 .as-auth-v3__shell--register {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: var(--as-radius-sm);
    }

    .as-auth-v3 .as-auth-v3__media {
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: auto;
        min-height: 124px;
    }

    .as-auth-v3 .as-auth-v3__shell--register .as-auth-v3__media {
        grid-template-rows: auto;
    }

    .as-auth-v3 .as-auth-v3__media-image {
        min-height: 124px;
        border: 0;
        border-bottom-right-radius: 44px;
    }

    .as-auth-v3 .as-auth-v3__media-image img {
        min-height: 124px;
        object-position: 46% center;
    }

    .as-auth-v3 .as-auth-v3__media-copy {
        align-self: center;
        padding: var(--as-space-md);
    }

    .as-auth-v3 .as-auth-v3__media-icon {
        display: none;
    }

    .as-auth-v3 .as-auth-v3__media-copy h2 {
        margin-bottom: 4px;
        font-size: var(--as-text-lg);
    }

    .as-auth-v3 .as-auth-v3__media-copy p {
        display: -webkit-box;
        overflow: hidden;
        font-size: var(--as-text-sm);
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .as-auth-v3 .as-auth-v3__form-panel.singUp-wrap {
        padding: var(--as-space-lg) var(--as-space-md);
    }

    .as-auth-v3 .as-auth-v3__heading {
        margin-bottom: var(--as-space-lg);
    }

    .as-auth-v3 .as-auth-v3__heading .title {
        font-size: var(--as-heading-sm);
    }

    .as-auth-v3 .as-auth-v3__heading p {
        font-size: var(--as-text-md);
    }

    .as-auth-v3 .as-auth-v3__form-panel .account__check {
        gap: var(--as-space-sm);
    }

    .as-auth-v3 .as-auth-v3__password-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 380px) {
    .as-auth-v3 .as-auth-v3__form-panel .account__check {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-auth-v3 .as-auth-v3__password-toggle {
        transition: none;
    }
}
