/* Login: card, social buttons and form (loaded apart from Assetic/main.css) */

.login-layout #need-help {
    color: #6f1c48;
}

.login-layout #checkout-header {
    padding: 8px 10px;
    margin-bottom: 0;
}

.login-checkout #need-help {
    color: #6f1c48;
}

.login-checkout #checkout-header {
    margin-bottom: 0;
    padding-bottom: 16px;
}

.login-checkout #checkout-footer {
    margin-top: 0;
}

.login-page {
    --login-burgundy: #6f1c48;
    --login-burgundy-hover: #8c2e60;
    --login-text: #2a2a2a;
    --login-muted: #666;
    --login-border: #ddd;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: -10px;
    padding: 12px 12px 24px;
    background: linear-gradient(180deg, #faf6f8 0%, #f3eef1 100%);
}

.login-checkout .login-page {
    margin: 0 -15px;
    padding: 28px 16px 40px;
    min-height: 46vh;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    border-top: 3px solid #6f1c48;
    box-shadow: 0 10px 36px rgba(80, 24, 48, 0.1);
    padding: 24px 28px 22px;
    box-sizing: border-box;
}

.login-card__icon {
    display: flex;
    justify-content: center;
    margin: 0 0 12px;
}

.login-card__icon svg {
    display: block;
    width: 44px;
    height: 44px;
    padding: 11px;
    box-sizing: border-box;
    color: #6f1c48;
    background: #f7eef3;
    border-radius: 50%;
}

.login-card__title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--login-text);
    margin: 0 0 10px;
    text-transform: none;
    letter-spacing: 0.01em;
}

.login-card__lead {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--login-muted);
    margin: 0 0 20px;
}

.login-card__lead strong {
    color: var(--login-text);
    font-weight: 600;
}

.login-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-social__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    background: #fff;
    border: 1px solid var(--login-border);
    border-radius: 6px;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-social__btn:hover,
.login-social__btn:focus {
    color: #333 !important;
    background: #fafafa;
    border-color: #ccc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    text-decoration: none !important;
}

.login-social__btn .login-social__icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 12px 0 10px;
    color: #999;
    font-size: 12px;
}

.login-divider:before,
.login-divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}

.login-divider span {
    padding: 0 10px;
    background: #fff;
    font-size: 12px;
    line-height: 1;
}

.login-card__subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--login-muted);
    margin: 0 0 8px;
    text-transform: none;
}

.login-form .alert {
    margin-bottom: 10px;
}

.login-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin: 0 0 6px;
    text-transform: none;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    height: 42px;
    margin: 0 0 14px !important;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: var(--login-text);
    font-size: 15px;
    box-sizing: border-box;
}

.login-form input[type="text"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #6f1c48 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 28, 72, 0.15) !important;
}

.login-form input::-webkit-input-placeholder {
    color: #aaa;
}

.login-form input::-moz-placeholder {
    color: #aaa;
}

.login-form input:-ms-input-placeholder {
    color: #aaa;
}

.login-form__error,
.login-form__notice {
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 14px;
}

.login-form__error {
    background: #fdeeee;
    color: #8a1f1f;
    border: 1px solid #f3c6c6;
}

.login-form__notice {
    background: #f3f7ef;
    color: #3d5a2a;
    border: 1px solid #d5e4c8;
}

.login-otp-code {
    letter-spacing: 0.42em;
    font-size: 22px !important;
    font-weight: 600;
    text-align: center;
}

.login-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.login-form__forgot {
    display: inline-block;
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
}

.login-form__remember {
    display: flex !important;
    align-items: center;
    font-weight: 400 !important;
    margin: 0;
    cursor: pointer;
}

.login-form__remember input[type="checkbox"] {
    width: auto !important;
    height: auto;
    margin: 0 8px 0 0 !important;
}

.login-form__submit {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0 0 12px !important;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
}

.login-form__secondary {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0 0 14px !important;
    padding: 0;
    background: #fff !important;
    color: #6f1c48 !important;
    border: 1px solid #d8c4ce !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.login-form__secondary:hover,
.login-form__secondary:focus {
    background: #faf6f8 !important;
    color: #6f1c48 !important;
    text-decoration: none;
}

.login-form__alt {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.login-form__alt--center {
    justify-content: center;
    text-align: center;
}

@media screen and (max-width: 480px) {
    .login-card {
        padding: 20px 16px 16px;
        box-shadow: none;
        border: 1px solid #eee;
        border-top: 3px solid #6f1c48;
    }

    .login-card__title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .login-form__alt {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        justify-content: center;
    }
}
