/* Makesy login / register */

body.theme-makesy.page-auth .mk-main {
    background: #fff;
}

body.theme-makesy .mk-auth-page {
    padding: 2.5rem 0 4rem;
}

body.theme-makesy .mk-auth-page__inner {
    max-width: 28rem;
    margin-inline: auto;
}

body.theme-makesy .mk-auth-page__inner--wide {
    max-width: 42rem;
}

body.theme-makesy .mk-auth-page__title {
    margin: 0 0 1.75rem;
    text-align: center;
    font-family: var(--mk-font-section-title);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: var(--mk-section-title-weight, 300);
    line-height: 1.1;
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy .mk-auth-card {
    padding: 1.75rem 1.5rem 2rem;
    border: 1px solid var(--mk-border, #e8e0d8);
    border-radius: var(--mk-radius-lg, 12px);
    background: #fff;
}

@media (min-width: 576px) {
    body.theme-makesy .mk-auth-card {
        padding: 2rem 2.25rem 2.25rem;
    }
}

body.theme-makesy .mk-auth-card--wide {
    max-width: 42rem;
    margin-inline: auto;
}

body.theme-makesy .mk-auth-card__alert {
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

body.theme-makesy .mk-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.theme-makesy .mk-auth-field {
    margin-bottom: 1.15rem;
}

body.theme-makesy .mk-auth-label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--mk-font-slider);
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
}

body.theme-makesy .mk-auth-required {
    color: #c41e1e;
}

body.theme-makesy .mk-auth-input {
    width: 100%;
    min-height: var(--mk-input-height, 50px);
    padding: 0.65rem 1rem;
    border: 1px solid var(--mk-border, #e8e0d8) !important;
    border-radius: var(--mk-radius-lg, 10px) !important;
    background: #fff !important;
    font-family: var(--mk-font-slider);
    font-size: 0.9375rem;
    color: #1a1a1a;
}

body.theme-makesy .mk-auth-input:focus {
    border-color: var(--mk-brown, #502c1e) !important;
    box-shadow: 0 0 0 3px rgba(80, 44, 30, 0.12);
    outline: none;
}

body.theme-makesy .mk-auth-input.is-invalid {
    border-color: #b42318 !important;
}

body.theme-makesy .mk-auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

body.theme-makesy .mk-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-family: var(--mk-font-slider);
    font-size: 0.8125rem;
    color: #1a1a1a;
    cursor: pointer;
}

body.theme-makesy .mk-auth-check .form-check-input {
    margin: 0;
}

body.theme-makesy .mk-auth-link {
    font-family: var(--mk-font-slider);
    font-size: 0.8125rem;
    color: var(--mk-brown, #502c1e);
    text-decoration: underline;
}

body.theme-makesy .mk-auth-link:hover {
    color: var(--mk-link-hover, #a88275);
}

body.theme-makesy .mk-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0 1.5rem;
    border-radius: var(--mk-radius-pill, 3.75rem);
    font-family: var(--mk-font-slider-bold);
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

body.theme-makesy .mk-auth-btn--primary {
    border: 1px solid var(--mk-accent, #ee5909);
    background: var(--mk-accent, #ee5909);
    color: #fff;
}

body.theme-makesy .mk-auth-btn--primary:hover {
    background: var(--mk-brown, #502c1e);
    border-color: var(--mk-brown, #502c1e);
    color: #fff;
}

body.theme-makesy .mk-auth-btn--ghost {
    border: 1px solid var(--mk-brown, #502c1e);
    background: #fff;
    color: var(--mk-brown, #502c1e);
}

body.theme-makesy .mk-auth-btn--ghost:hover {
    background: var(--mk-brown, #502c1e);
    color: #fff;
}

body.theme-makesy .mk-auth-divider {
    margin: 1.25rem 0;
    text-align: center;
    font-family: var(--mk-font-slider);
    font-size: 0.8125rem;
    color: var(--mk-muted, #5c4035);
}

body.theme-makesy .mk-auth-form .invalid-feedback {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
}

body.theme-makesy .mk-auth-form .mk-auth-footer-link {
    margin-top: 1rem;
}

body.theme-makesy .mk-auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0.25rem;
}

@media (min-width: 576px) {
    body.theme-makesy .mk-auth-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
    }
}

body.theme-makesy .mk-auth-field--full {
    grid-column: 1 / -1;
}

body.theme-makesy .mk-auth-field--agreements {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

body.theme-makesy .mk-auth-form .kf-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-family: var(--mk-font-slider);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #1a1a1a;
    cursor: pointer;
}

body.theme-makesy .mk-auth-form .kf-auth-checkbox input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

body.theme-makesy .mk-auth-form .kf-auth-checkbox a {
    color: var(--mk-brown, #502c1e);
    text-decoration: underline;
}

body.theme-makesy .mk-auth-form .kf-field-error {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #b42318;
}
