/* ==========================================================================
   Fabavio modern auth — underline input design language (2026-09-30)
   Straight-line inputs replace the pill/box style on login + register.
   Scoped to .authline-form / .authline-social so nothing else is affected.
   Works on the full pages and inside the auth modal (both include the same
   form partials).
   ========================================================================== */

.authline-form {
    --authline-accent: #7c3cff;
    --authline-accent-soft: #a78bfa;
    --authline-line: rgba(255, 255, 255, .16);
    --authline-line-hover: rgba(255, 255, 255, .32);
    --authline-text: #f4f2ff;
    --authline-muted: #8f8fa3;
    --authline-danger: #fb7185;
}

.authline-field {
    margin: 0 0 26px;
    position: relative;
}

.authline-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--authline-muted);
    margin: 0 0 2px;
}

.authline-wrap {
    position: relative;
}

/* Animated accent underline */
.authline-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--authline-accent), var(--authline-accent-soft));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s ease;
    pointer-events: none;
}

.authline-wrap:focus-within::after {
    transform: scaleX(1);
}

/* The straight-line input itself: no box, no radius — one clean line. */
.authline-form .authline-input,
.authline-form input.authline-input,
.authline-form select.authline-input,
.authline-form textarea.authline-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--authline-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--authline-text);
    font-size: 16px;
    line-height: 1.45;
    padding: 10px 2px 12px;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.authline-form .authline-input:hover {
    border-bottom-color: var(--authline-line-hover);
}

.authline-form .authline-input:focus {
    border-bottom-color: transparent; /* the animated ::after line takes over */
    background: rgba(124, 60, 255, .05);
    box-shadow: none;
    outline: none;
}

.authline-form .authline-input::placeholder {
    color: #5d5d72;
    opacity: 1;
}

/* Invalid state: red line instead of accent */
.authline-form .authline-input.is-invalid {
    border-bottom-color: var(--authline-danger);
}

.authline-wrap.has-error::after {
    background: var(--authline-danger);
    transform: scaleX(1);
}

.authline-error {
    display: block;
    color: var(--authline-danger);
    font-size: 13px;
    margin-top: 7px;
    line-height: 1.4;
}

/* Select (country): custom chevron, dark dropdown */
.authline-form select.authline-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238f8fa3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 28px;
    cursor: pointer;
}

.authline-form select.authline-input option {
    background: #14141c;
    color: #f4f2ff;
}

/* Password reveal field inside the underline language */
.authline-form .password-reveal-field {
    position: relative;
}

.authline-form .password-reveal-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--authline-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--authline-text);
    font-size: 16px;
    line-height: 1.45;
    padding: 10px 44px 12px 2px;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.authline-form .password-reveal-input:hover {
    border-bottom-color: var(--authline-line-hover);
}

.authline-form .password-reveal-input:focus {
    border-bottom-color: transparent;
    background: rgba(124, 60, 255, .05);
    box-shadow: none;
    outline: none;
}

.authline-form .password-reveal-input::placeholder {
    color: #5d5d72;
    opacity: 1;
}

.authline-form .password-reveal-input.is-invalid {
    border-bottom-color: var(--authline-danger);
}

.authline-form .password-reveal-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--authline-muted);
    padding: 8px 4px;
    cursor: pointer;
    line-height: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authline-form .password-reveal-toggle:hover {
    color: #fff;
}

/* Neutralize Bootstrap's .form-control inside our forms */
.authline-form .form-control {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Remember / forgot row — slim, inherits page styles */
.authline-form .authline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 24px;
    font-size: 14px;
    color: var(--authline-muted);
}

.authline-form .authline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.authline-form .authline-check input {
    accent-color: var(--authline-accent);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.authline-form .authline-link {
    color: var(--authline-accent-soft);
    text-decoration: none;
    font-weight: 600;
}

.authline-form .authline-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Terms + creator opt-in rows */
.authline-form .authline-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #c9c9d6;
    line-height: 1.5;
    cursor: pointer;
}

.authline-form .authline-consent input {
    accent-color: var(--authline-accent);
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.authline-form .authline-consent a {
    color: var(--authline-accent-soft);
    font-weight: 600;
    text-decoration: none;
}

.authline-form .authline-consent a:hover {
    text-decoration: underline;
}

.authline-hint {
    display: block;
    font-size: 12.5px;
    color: var(--authline-muted);
    margin-top: 4px;
}

/* ---- Social buttons ---- */
.authline-social {
    margin: 0 0 28px;
}

.authline-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6d6d85;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 18px;
}

.authline-divider::before,
.authline-divider::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
    background: rgba(255, 255, 255, .12);
}

/* Google: white button, official G — the primary social action */
.authline-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    color: #1f1f23;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.authline-google:hover {
    color: #1f1f23;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.authline-google img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

/* Future providers (Facebook, X, Apple…): quiet dark buttons */
.authline-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, .06);
    color: var(--authline-text);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: background .15s ease;
}

.authline-social-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
}

/* Submit keeps the brand pill button */
.authline-form .fab-btn {
    width: 100%;
    margin-top: 6px;
}

/* Compact on small screens */
@media (max-width: 480px) {
    .authline-field {
        margin-bottom: 22px;
    }

    .authline-form .authline-input,
    .authline-form .password-reveal-input {
        font-size: 16px; /* no iOS zoom */
    }
}

/* Auth modal (subscribe prompt): dark card so the underline inputs read
   well regardless of the surrounding modal theme. */
#login-dialog .login-section,
#login-dialog .register-section {
    background: #101016;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 26px 22px;
}

#login-dialog .forgot-section {
    background: #101016;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 26px 22px;
}
