@font-face {
    font-family: "Cormorant Garamond Display";
    src: url("../font/CormorantGaramond-Italic.ttf") format("truetype-variations");
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    --ink: #29251f;
    --secondary: #746d62;
    --page: #f4f0e8;
    --cream: #fbf8f1;
    --heading: #5b2d1a;
    --heading-dark: #472113;
    --line: rgba(73, 62, 48, 0.18);
}

body.admin-login-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--ink);
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

.login-header {
    width: 100%;
    height: 104px;
    padding: 0 max(28px, 6.5vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 248, 241, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.login-brand > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-style: italic;
    font-weight: 500;
}

.login-menu {
    position: relative;
}

.login-menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.login-menu-button:hover {
    background: rgba(91, 45, 26, 0.08);
}

.login-menu-icon {
    font-size: 18px;
    line-height: 1;
}

.login-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 100;
    min-width: 180px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(55, 43, 31, 0.12);
}

.login-dropdown-menu.open {
    display: flex;
}

.login-dropdown-menu a {
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 15px;
}

.login-dropdown-menu a:hover {
    background: rgba(91, 45, 26, 0.08);
    color: var(--ink);
}

.login-dropdown-menu a.active {
    color: var(--heading);
    font-weight: 600;
}

.login-main {
    width: 100%;
    flex: 1;
    position: relative;
    isolation: isolate;
    padding: 64px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url("../img/home-workshop-hero-refreshed.png") center / cover no-repeat;
}

.login-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(226, 226, 223, 0.63);
    backdrop-filter: grayscale(0.1);
}

.login-wrapper {
    width: 100%;
    max-width: 530px;
    margin: 0 auto;
}

.signup-wrapper {
    max-width: 760px;
}

.signup-card {
    padding: 40px 46px;
}

.signup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.signup-full {
    grid-column: 1 / -1;
}

.account-type-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-type-fieldset legend {
    margin: 0 0 10px;
    padding: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.account-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-type-option {
    min-width: 0;
    min-height: 76px;
    margin: 0;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(91, 45, 26, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.account-type-option:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(91, 45, 26, 0.42);
}

.account-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.account-type-content strong {
    color: var(--heading);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.account-type-content small {
    color: var(--secondary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.account-type-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    border: 1px solid rgba(91, 45, 26, 0.28);
    border-radius: 50%;
    color: transparent;
    font-size: 12px;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.account-type-option:has(input:checked) {
    background: rgba(91, 45, 26, 0.075);
    border-color: var(--heading);
    box-shadow: inset 0 0 0 1px var(--heading);
}

.account-type-option:has(input:checked) .account-type-check {
    background: var(--heading);
    border-color: var(--heading);
    color: var(--cream);
}

.account-type-option:focus-within {
    outline: 2px solid rgba(91, 45, 26, 0.3);
    outline-offset: 3px;
}

.login-signup-link {
    margin: 18px 0 0;
    color: var(--secondary);
    text-align: center;
    font-size: 13px;
}

.signup-captcha {
    margin-top: 2px;
}

.login-signup-link a {
    color: var(--heading);
    font-weight: 700;
    text-decoration: none;
}

.login-signup-link a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .signup-grid {
        grid-template-columns: 1fr;
    }

    .signup-full {
        grid-column: auto;
    }

    .account-type-options {
        grid-template-columns: 1fr;
    }
}

.login-card {
    width: 100%;
    padding: 46px;
    background: rgba(251, 248, 241, 0.91);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 24px 70px rgba(55, 43, 31, 0.16);
    backdrop-filter: blur(16px);
}

.login-heading {
    margin-bottom: 24px;
}

.login-eyebrow {
    margin: 0 0 10px;
    color: var(--heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.login-heading h1 {
    margin: 0 0 8px;
    color: var(--heading);
    font-family: "Cormorant Garamond Display", Georgia, "Times New Roman", serif;
    font-size: 52px;
    font-style: italic;
    font-weight: 650;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.login-heading > p:last-child {
    margin: 0;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.65;
}

.login-notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    background: rgba(91, 45, 26, 0.08);
    color: var(--heading);
    border: 1px solid rgba(91, 45, 26, 0.24);
    border-radius: 3px;
    font-size: 13px;
}

.login-notice-auto-dismiss {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.login-notice-auto-dismiss.is-dismissing {
    opacity: 0;
    transform: translateY(-4px);
}

.login-error-notification {
    width: 100%;
    margin-bottom: 24px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    color: #1d2939;
}

.login-error-notification.login-error-below {
    margin-top: 18px;
    margin-bottom: 0;
}

.login-field input.phone-input {
    font-family: inherit;
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.login-error-icon {
    width: 24px;
    height: 24px;
    margin-top: 1px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d92d20;
    border-radius: 50%;
    color: #d92d20;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.login-error-content {
    flex: 1;
    min-width: 0;
}

.login-error-content p {
    margin: 0 0 4px;
    color: #1d2939;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.login-error-content span {
    display: block;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.admin-login-form {
    width: 100%;
}

.login-field {
    margin-bottom: 15px;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.login-field label.label-error {
    color: #b42318;
}

.login-field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink);
    border: 1px solid rgba(91, 45, 26, 0.26);
    border-radius: 3px;
    font: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.login-field select,
.login-field textarea {
    width: 100%;
    outline: none;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink);
    border: 1px solid rgba(91, 45, 26, 0.26);
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-field select {
    height: 50px;
    padding: 0 42px 0 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235b2d1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.login-field textarea {
    min-height: 104px;
    padding: 14px;
    display: block;
    line-height: 1.55;
    resize: vertical;
}

.login-field select:focus,
.login-field textarea:focus {
    border-color: var(--heading);
    box-shadow: 0 0 0 3px rgba(91, 45, 26, 0.1);
}

.login-field textarea::placeholder {
    color: #9a9287;
}

.login-field input::placeholder {
    color: #968d82;
}

.login-field input:focus {
    border-color: var(--heading);
    box-shadow: 0 0 0 3px rgba(91, 45, 26, 0.12);
}

.login-field input.input-error,
.login-field input.form-error {
    border-color: #d92d20;
    background: #fffdfd;
}

.login-field input.input-error:focus,
.login-field input.form-error:focus {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.10);
}

.login-field .error-message {
    margin: 6px 0 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.login-submit-button {
    width: 100%;
    height: 50px;
    margin-top: 4px;
    border: none;
    border-radius: 3px;
    background: var(--heading);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

.login-submit-button:hover {
    background: var(--heading-dark);
}

.login-submit-button:active {
    transform: translateY(1px);
}

.login-security-note {
    margin: 22px 0 0;
    color: var(--secondary);
    font-size: 12px;
    text-align: center;
}

.login-footer {
    width: 100%;
    margin-top: auto;
    padding: 26px 20px;
    flex-shrink: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    text-align: center;
}

.login-footer p {
    margin: 0;
    color: var(--secondary);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.admin-login-captcha {
    width: 100%;
    margin: 18px 0;
}

.admin-login-captcha .g-recaptcha {
    display: flex;
    justify-content: center;
}

.captcha-login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px solid #d93025;
    border-radius: 8px;
    background: #ffffff;
    color: #b3261e;
    font-size: 14px;
    line-height: 1.4;
}

.captcha-error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d93025;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.captcha-config-error {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d93025;
    border-radius: 8px;
    color: #b3261e;
    font-size: 14px;
}

@media (max-width: 600px) {
    .login-header {
        height: 78px;
        padding: 0 18px;
    }

    .login-brand {
        gap: 10px;
        font-size: 13px;
    }

    .login-brand > span {
        width: 38px;
        height: 38px;
        font-size: 23px;
    }

    .login-brand strong {
        display: none;
    }

    .login-main {
        padding: 34px 14px;
    }

    .login-card {
        padding: 30px 22px;
    }

    .login-heading {
        margin-bottom: 24px;
    }

    .login-heading h1 {
        font-size: 44px;
    }

    .login-error-notification {
        padding: 15px 16px;
        gap: 12px;
    }

    .login-footer {
        padding: 22px 16px;
    }
}

@media (max-width: 420px) {
    .admin-login-captcha .g-recaptcha {
        transform: scale(0.88);
        transform-origin: left center;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 24px 18px;
    }

    .login-field input,
    .login-submit-button {
        height: 46px;
    }

    .login-error-content p {
        font-size: 13px;
    }

    .login-error-content span {
        font-size: 12px;
    }
}
