/**
 * Prijava i registracija korisnika.
 */

/*------------------------------------------------------------------------------------------------*/
/* Osnovna stranica */

.customer-auth-body {
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
}

.customer-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(540px, 1.1fr);
}

/*------------------------------------------------------------------------------------------------*/
/* Vizuelni dio */

.customer-auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 52px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 255, 255, 0.22),
            transparent 24%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(255, 255, 255, 0.15),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #7442e8 0%,
            #8b5cf6 45%,
            #a879f7 100%
        );
}

.customer-auth-visual::before,
.customer-auth-visual::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.customer-auth-visual::before {
    width: 420px;
    height: 420px;
    top: -170px;
    right: -170px;
}

.customer-auth-visual::after {
    width: 360px;
    height: 360px;
    bottom: -160px;
    left: -130px;
}

.customer-auth-visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.customer-auth-brand,
.customer-auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-size: 20px;
    font-weight: 800;
}

.customer-auth-brand:hover,
.customer-auth-mobile-brand:hover {
    color: inherit;
}

.customer-auth-brand .customer-brand-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.customer-auth-message {
    max-width: 560px;
    margin: auto 0 58px;
}

.auth-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.customer-auth-message h1 {
    max-width: 540px;
    margin-bottom: 20px;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -1.7px;
}

.customer-auth-message p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.83);
    font-size: 17px;
    line-height: 1.75;
}

.customer-auth-features {
    display: grid;
    gap: 14px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.auth-feature > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    font-size: 20px;
}

.auth-feature strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.auth-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.73);
    font-size: 12px;
}

/*------------------------------------------------------------------------------------------------*/
/* Forma */

.customer-auth-form-side {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 46px 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(139, 92, 246, 0.06),
            transparent 35%
        ),
        #ffffff;
}

.customer-auth-form-wrap {
    width: 100%;
    max-width: 450px;
}

.customer-auth-mobile-brand {
    margin-bottom: 42px;
    color: var(--customer-text);
}

.customer-auth-heading {
    margin-bottom: 30px;
}

.auth-heading-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--customer-primary);
    background: var(--customer-primary-soft);
    border-radius: 16px;
    font-size: 24px;
}

.customer-auth-heading h2 {
    margin-bottom: 10px;
    color: var(--customer-text);
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.customer-auth-heading p {
    margin: 0;
    color: var(--customer-muted);
    font-size: 14px;
    line-height: 1.65;
}

.customer-auth-alert {
    border: 1px solid #ffd3d8;
    border-radius: 13px;
    font-size: 13px;
}

.customer-auth-form .form-label {
    margin-bottom: 8px;
    color: #363944;
    font-size: 13px;
    font-weight: 700;
}

.customer-input-group {
    position: relative;
}

.customer-input-group > span {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    color: #8c909d;
    transform: translateY(-50%);
}

.customer-input-group .form-control {
    min-height: 52px;
    padding-left: 46px;
    padding-right: 46px;
    background: #fbfbfd;
}

.customer-input-group .form-control::placeholder {
    color: #a5a8b1;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #888d99;
    background: transparent;
    border: 0;
    border-radius: 10px;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--customer-primary);
    background: var(--customer-primary-soft);
}

.customer-auth-link {
    color: var(--customer-primary);
    font-weight: 700;
}

.customer-auth-link:hover {
    color: var(--customer-primary-dark);
}

.customer-remember-row {
    margin: 16px 0 22px;
    color: var(--customer-muted);
    font-size: 13px;
}

.customer-remember-row .form-check-input:checked {
    background-color: var(--customer-primary);
    border-color: var(--customer-primary);
}

.booking-site-logo {
    display: block;

    width: auto;
    max-width: 190px;
    height: 70px;

    object-fit: contain;
}

.customer-login-button {
    min-height: 52px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    font-weight: 700;
}

.customer-auth-divider {
    position: relative;
    margin: 28px 0 20px;
    color: #9599a4;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customer-auth-divider::before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    content: "";
    height: 1px;
    background: var(--customer-border);
}

.customer-auth-divider span {
    position: relative;
    padding: 0 13px;
    background: #ffffff;
}

.customer-register-link {
    min-height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--customer-primary);
    background: #ffffff;
    border: 1px solid #cbb8fd;
    border-radius: 12px;
    font-weight: 700;
}

.customer-register-link:hover {
    color: #ffffff;
    background: var(--customer-primary);
    border-color: var(--customer-primary);
}

.customer-salon-login {
    margin: 28px 0 0;
    color: var(--customer-muted);
    text-align: center;
    font-size: 12px;
}

.customer-salon-login a {
    color: var(--customer-primary);
    font-weight: 700;
}

/*------------------------------------------------------------------------------------------------*/
/* Registracija */

.customer-register-form-side {
    padding-top: 32px;
    padding-bottom: 32px;
}

.customer-register-form-side .customer-auth-form-wrap {
    max-width: 520px;
}

.customer-terms-row {
    margin: 20px 0 22px;
    color: var(--customer-muted);
    font-size: 12px;
    line-height: 1.6;
}

.customer-terms-row a {
    color: var(--customer-primary);
    font-weight: 700;
}

.customer-terms-row .form-check-input:checked {
    background-color: var(--customer-primary);
    border-color: var(--customer-primary);
}

.customer-field-help {
    display: block;
    margin-top: 7px;
    color: var(--customer-muted);
    font-size: 11px;
    line-height: 1.5;
}

.password-strength {
    display: grid;
    gap: 6px;
}

.password-strength-bar {
    height: 5px;
    overflow: hidden;
    background: #ececf2;
    border-radius: 999px;
}

.password-strength-bar span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.password-strength small {
    color: var(--customer-muted);
    font-size: 11px;
}

.password-strength.is-weak .password-strength-bar span {
    width: 33%;
    background: #ef5965;
}

.password-strength.is-medium .password-strength-bar span {
    width: 66%;
    background: #eaa12d;
}

.password-strength.is-strong .password-strength-bar span {
    width: 100%;
    background: #2eb874;
}

.password-strength.is-weak small {
    color: #d94450;
}

.password-strength.is-medium small {
    color: #c57b13;
}

.password-strength.is-strong small {
    color: #208c58;
}

/*------------------------------------------------------------------------------------------------*/
/* Izbor jezika */

.customer-auth-form-side {
    position: relative;
}

.customer-language-switcher {
    position: absolute;
    top: 24px;
    right: 28px;

    z-index: 5;

    display: flex;
    align-items: center;

    gap: 9px;
}

.customer-language-switcher label {
    margin: 0;

    color: var(--customer-muted);

    font-size: 12px;
    font-weight: 700;
}

.customer-language-switcher .form-select {
    min-height: 40px;
    width: auto;
    min-width: 165px;

    padding-top: 7px;
    padding-bottom: 7px;

    color: #4c4f5b;
    background-color: rgba(255, 255, 255, 0.9);

    border: 1px solid #ddd7ec;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 600;

    box-shadow:
        0 7px 20px rgba(50, 42, 80, 0.07);
}

.customer-language-switcher .form-select:focus {
    border-color: #b89efc;

    box-shadow:
        0 0 0 0.2rem rgba(139, 92, 246, 0.12);
}

/*-------------------------------------------------------------------------------------------------
    Responsive stilovi
-------------------------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------------------------*/
/* Tablet */

@media (max-width: 991.98px) {
    /* Izbor jezika */

    .customer-language-switcher {
        top: 20px;
        right: 20px;
    }

    /* Raspored stranice i forma */

    .customer-auth-page {
        display: block;
    }

    .customer-auth-form-side {
        min-height: 100vh;
        padding-top: 34px;
        padding-bottom: 34px;
    }
}

/*------------------------------------------------------------------------------------------------*/
/* Mobilni uređaji */

@media (max-width: 575.98px) {
    /* Izbor jezika */

    .customer-language-switcher {
        position: static;

        justify-content: flex-end;

        margin-bottom: 24px;
    }

    .customer-language-switcher label {
        display: none;
    }

    .customer-language-switcher .form-select {
        width: 100%;
        min-width: 0;
    }

    /* Forma */

    .customer-auth-form-side {
        align-items: start;
        padding: 24px 18px;
    }

    .customer-auth-mobile-brand {
        margin-bottom: 40px;
    }

    .customer-auth-heading h2 {
        font-size: 27px;
    }
}