/* Redwave customer auth modals — login & registration */
.rw-auth-modal {
    z-index: 1060;
}

.rw-auth-modal + .modal-backdrop,
.modal-backdrop.show {
    z-index: 1055;
}

.rw-auth-modal .modal-dialog {
    max-width: 420px;
    margin: 1.5rem auto;
}

.rw-auth-modal .modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    position: relative;
}

.rw-auth-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(211, 47, 47, 0.14) 100%);
    pointer-events: none;
    z-index: 0;
}

.rw-auth-modal .modal-body {
    position: relative;
    z-index: 1;
    padding: 2rem 1.75rem 1.75rem;
}

.rw-auth-modal .rw-auth-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.rw-auth-modal .rw-auth-close:hover {
    background: rgba(255, 69, 69, 0.18);
    color: #fff;
}

.rw-auth-modal .rw-auth-close:active {
    transform: scale(0.96);
}

/* Branding */
.rw-auth-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.rw-auth-brand__monogram {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rw-auth-brand__monogram img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rw-auth-brand__monogram-fallback {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #d4af37;
    line-height: 1;
}

.rw-auth-brand__name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: #d4af37;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
}

.rw-auth-brand__tagline {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: rgba(212, 175, 55, 0.72);
    text-transform: uppercase;
    margin: 0;
}

.rw-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 1.35rem;
}

.rw-auth-divider::before,
.rw-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
}

.rw-auth-divider__diamond {
    width: 7px;
    height: 7px;
    background: #d4af37;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Headings */
.rw-auth-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.rw-auth-heading em {
    font-style: normal;
    color: #ff4545;
}

.rw-auth-subtext {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.35rem;
}

/* Form fields */
.rw-auth-field {
    margin-bottom: 0.85rem;
}

.rw-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rw-auth-input-wrap__icon {
    position: absolute;
    left: 0.85rem;
    color: #ff4545;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

.rw-auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.72rem 0.85rem 0.72rem 2.55rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rw-auth-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.rw-auth-input:focus {
    outline: none;
    border-color: rgba(255, 69, 69, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 69, 69, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.rw-auth-input.is-invalid {
    border-color: #ff4545;
}

.rw-auth-input-wrap--password .rw-auth-input {
    padding-right: 2.75rem;
}

.rw-auth-toggle-pw {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.rw-auth-toggle-pw:hover {
    color: rgba(255, 255, 255, 0.75);
}

.rw-auth-field-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 0.3rem;
}

.rw-auth-field-error {
    display: block;
    font-size: 0.75rem;
    color: #ff6b6b;
    margin-top: 0.35rem;
}

.rw-auth-recaptcha-error {
    display: block;
    font-size: 0.75rem;
    color: #ff6b6b;
    background: rgba(255, 69, 69, 0.12);
    border: 1px solid rgba(255, 69, 69, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.85rem;
}

/* Row controls */
.rw-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.rw-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    margin: 0;
}

.rw-auth-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #ff4545;
    cursor: pointer;
}

.rw-auth-checkbox span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.rw-auth-link {
    font-size: 0.78rem;
    color: #ff4545;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rw-auth-link:hover {
    color: #ff6b6b;
    text-decoration: none;
}

/* Submit button */
.rw-auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #e03d3d 0%, #ff4545 50%, #c62828 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 18px rgba(255, 69, 69, 0.32);
    position: relative;
}

.rw-auth-submit:hover {
    box-shadow: 0 6px 22px rgba(255, 69, 69, 0.42);
    color: #fff;
}

.rw-auth-submit:active {
    transform: scale(0.98);
}

.rw-auth-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.rw-auth-submit__arrow {
    position: absolute;
    right: 1.1rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* Social login */
.rw-auth-social-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.35rem 0 1rem;
}

.rw-auth-social-divider::before,
.rw-auth-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.rw-auth-social-divider span {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.rw-auth-social {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.rw-auth-social__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 69, 69, 0.45);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.rw-auth-social__btn:hover {
    background: rgba(255, 69, 69, 0.14);
    border-color: #ff4545;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.rw-auth-social__btn:active {
    transform: scale(0.96);
}

/* Footer switch */
.rw-auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 0.25rem;
}

.rw-auth-footer p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.25rem;
}

.rw-auth-footer__switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff4545;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rw-auth-footer__switch:hover {
    color: #ff6b6b;
}

.rw-auth-footer__switch i {
    font-size: 0.85rem;
}

/* Terms */
.rw-auth-terms {
    margin-bottom: 1rem;
}

.rw-auth-terms .rw-auth-checkbox span {
    font-size: 0.72rem;
    line-height: 1.4;
}

.rw-auth-terms a {
    color: #ff4545;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .rw-auth-modal .modal-body {
        padding: 1.65rem 1.25rem 1.5rem;
    }

    .rw-auth-heading {
        font-size: 1.15rem;
    }
}

/* ── Header auth triggers (desktop) — matches modal design system ── */
.header-element-3 .header3-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: 1rem;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header3-auth-signin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.header3-auth-signin::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #d4af37;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.header3-auth-signin:hover {
    color: #d4af37;
    text-decoration: none !important;
}

.header3-auth-signin:hover::after {
    transform: scaleX(1);
}

.header3-auth-signin:active {
    transform: scale(0.98);
}

.header3-auth-sep {
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.55);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.header3-auth-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.125rem;
    padding: 0.5rem 0.95rem 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #e03d3d 0%, #ff4545 52%, #c62828 100%);
    color: #fff !important;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 69, 69, 0.28);
    transition:
        transform 0.15s ease,
        box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.header3-auth-cta i {
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.92;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.header3-auth-cta:hover {
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(255, 69, 69, 0.38);
    transform: translateY(-1px);
}

.header3-auth-cta:hover i {
    transform: translateX(2px);
}

.header3-auth-cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 10px rgba(255, 69, 69, 0.24);
}

@media (max-width: 1399.98px) {
    .header-element-3 .header3-auth-actions {
        gap: 0.65rem;
        margin-left: 0.65rem;
    }

    .header3-auth-signin {
        font-size: 0.68rem;
    }

    .header3-auth-cta {
        padding: 0.45rem 0.8rem 0.45rem 0.85rem;
        font-size: 0.65rem;
    }
}
