/* Auth modal — used for signup overlay on landing/login pages.
   Uses founder color tokens only; matches the intake modal visual pattern. */

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, #000 55%, transparent);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.auth-modal-backdrop[hidden] {
    display: none;
}

.auth-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
    width: min(480px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 32px 28px 24px;
    color: var(--ink, #1a1a1a);
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 140ms;
}
.auth-modal-close:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

.auth-modal h1 {
    font: 800 22px/1.2 Inter, sans-serif;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.auth-modal .auth-modal-lead {
    font: 400 14px/1.4 Inter, sans-serif;
    color: color-mix(in srgb, currentColor 65%, transparent);
    margin: 0 0 20px;
}

.auth-modal-error {
    background: color-mix(in srgb, var(--mauve, var(--copper, currentColor)) 14%, transparent);
    border: 1px solid var(--mauve, var(--copper, currentColor));
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}
.auth-modal-error p { margin: 2px 0; }

.auth-modal-form .input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 12px;
    background: #fff;
    transition: border-color 140ms;
}
.auth-modal-form .input-row:focus-within {
    border-color: var(--purple, var(--blue, var(--teal, currentColor)));
}
.auth-modal-form .input-row input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font: 400 15px/1.2 Inter, sans-serif;
    background: transparent;
    color: inherit;
}
.auth-modal-form .input-row input::placeholder {
    color: color-mix(in srgb, currentColor 45%, transparent);
}
.auth-modal-form .line-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: color-mix(in srgb, currentColor 60%, transparent);
}
.auth-modal-form .eye {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, currentColor 50%, transparent);
    position: relative;
}
.auth-modal-form .eye::before {
    content: '';
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.auth-modal-help {
    font: 400 12px/1.4 Inter, sans-serif;
    color: color-mix(in srgb, currentColor 55%, transparent);
    margin: 4px 0 16px;
}

.auth-modal-form .primary {
    width: 100%;
    padding: 14px 24px;
    border-radius: 999px;
    border: none;
    background: var(--purple, var(--blue, var(--teal, currentColor)));
    color: #fff;
    font: 600 15px/1 Inter, sans-serif;
    cursor: pointer;
    transition: transform 80ms, opacity 160ms;
    margin-top: 8px;
}
.auth-modal-form .primary:hover { transform: translateY(-1px); }
.auth-modal-form .primary:active { transform: translateY(0); }

.auth-modal-terms {
    font: 400 12px/1.5 Inter, sans-serif;
    color: color-mix(in srgb, currentColor 55%, transparent);
    text-align: center;
    margin: 16px 0 0;
}
.auth-modal-terms a {
    color: var(--purple, var(--blue, var(--teal, currentColor)));
    text-decoration: none;
}
.auth-modal-terms a:hover { text-decoration: underline; }

.auth-modal-switch {
    font: 500 13px/1 Inter, sans-serif;
    text-align: center;
    margin: 14px 0 0;
    color: color-mix(in srgb, currentColor 70%, transparent);
}
.auth-modal-switch a {
    color: var(--purple, var(--blue, var(--teal, currentColor)));
    font-weight: 600;
    text-decoration: none;
}
.auth-modal-switch a:hover { text-decoration: underline; }
