/* AvtoHobi Account Portal */
.avh-portal{
    width:min(100% - 32px,980px);
    margin:56px auto 72px;
    font-family:inherit;
    color:#111827;
}

.avh-auth-shell{width:100%}
.avh-auth-grid{
    display:grid;
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
    gap:22px;
    align-items:start;
}
.avh-auth-tabs{display:none}

.avh-card{
    background:#fff;
    border:1px solid #e6e8ec;
    border-radius:22px;
    padding:34px;
    box-shadow:0 16px 45px rgba(15,23,42,.055);
}
.avh-auth-card{min-width:0}
.avh-auth-heading{margin:0 0 26px}
.avh-auth-heading h2,
.avh-card--content > h2{
    margin:0!important;
    color:#0f172a;
    font-size:clamp(2rem,3vw,2.65rem)!important;
    line-height:1.04!important;
    letter-spacing:-.035em;
    font-weight:650;
    word-break:normal!important;
}
.avh-auth-heading p{
    margin:10px 0 0;
    max-width:42ch;
    color:#6b7280;
    font-size:.95rem;
    line-height:1.55;
}
.avh-card--content{min-height:320px}
.avh-card--content > h2{margin-bottom:24px!important}

/* Forms */
.avh-form{display:grid;gap:15px}
.avh-field{display:grid;gap:7px}
.avh-field span,
.avh-card #loginform label{
    color:#374151;
    font-size:.9rem;
    line-height:1.35;
    font-weight:600;
}
.avh-field input,
.avh-card #loginform input[type="text"],
.avh-card #loginform input[type="password"]{
    width:100%!important;
    min-width:0!important;
    height:46px;
    box-sizing:border-box;
    margin:0!important;
    padding:10px 13px!important;
    border:1px solid #d8dde5!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#111827!important;
    box-shadow:none!important;
    font:inherit!important;
    transition:border-color .16s ease,box-shadow .16s ease;
}
.avh-field input:focus,
.avh-card #loginform input[type="text"]:focus,
.avh-card #loginform input[type="password"]:focus{
    outline:none!important;
    border-color:#64748b!important;
    box-shadow:0 0 0 3px rgba(100,116,139,.12)!important;
}

.avh-card #loginform{margin:0!important}
.avh-card #loginform p{margin:0 0 15px!important}
.avh-card #loginform .login-username,
.avh-card #loginform .login-password{display:grid;gap:7px}
.avh-card #loginform .login-remember{
    display:flex!important;
    align-items:center;
    gap:9px;
    margin-top:2px!important;
    color:#4b5563;
}
.avh-card #loginform .login-remember label{
    display:flex;
    align-items:center;
    gap:9px;
    font-weight:500;
}
.avh-card #loginform input[type="checkbox"]{
    width:17px!important;
    height:17px!important;
    margin:0!important;
    accent-color:#111827;
}
.avh-card #loginform .login-submit{margin:4px 0 0!important}

.avh-button,
.avh-portal input[type=submit]{
    width:100%;
    min-height:45px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border:0!important;
    border-radius:11px!important;
    padding:11px 18px!important;
    background:#111827!important;
    color:#fff!important;
    text-decoration:none!important;
    font-size:.94rem!important;
    font-weight:700!important;
    line-height:1!important;
    cursor:pointer;
    box-shadow:none!important;
    transition:transform .14s ease,opacity .14s ease;
}
.avh-button:hover,
.avh-portal input[type=submit]:hover{opacity:.92;transform:translateY(-1px)}

.avh-help,.avh-privacy{font-size:.86rem;color:#6b7280;line-height:1.5}
.avh-help a,.avh-privacy a{color:#374151;text-decoration:underline;text-underline-offset:2px}
.avh-auth-help{margin:16px 0 0!important}
.avh-privacy{margin:1px 0 0}

/* Social login plugin normalization */
.avh-social-login{margin:0 0 18px}
.avh-social-login > *{max-width:100%}
.avh-social-login button,
.avh-social-login a{
    box-sizing:border-box;
}
.avh-social-divider{
    display:flex;
    align-items:center;
    gap:12px;
    margin:17px 0;
    color:#8b93a1;
    font-size:.84rem;
}
.avh-social-divider:before,.avh-social-divider:after{content:"";height:1px;background:#e4e7ec;flex:1}
.avh-social-divider span{white-space:nowrap}

/* Logged-in portal */
.avh-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.avh-nav__link,.avh-nav__logout{
    padding:10px 14px;
    border-radius:10px;
    text-decoration:none!important;
    background:#f3f4f6;
    color:#111827!important;
    font-size:.92rem;
    font-weight:600;
}
.avh-nav__link.is-active{background:#111827;color:#fff!important}
.avh-nav__logout{margin-left:auto}
.avh-notice{margin:0 0 18px;padding:13px 16px;border-radius:12px;font-size:.92rem;line-height:1.5}
.avh-notice--success{background:#ecfdf5}.avh-notice--error{background:#fef2f2}.avh-notice--info{background:#eff6ff}
.avh-separator{height:1px;background:#e5e7eb;margin:6px 0}
.avh-ticket-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.avh-ticket{border:1px solid #e5e7eb;border-radius:14px;padding:18px}
.avh-ticket.is-inactive{opacity:.62}
.avh-ticket__number{font-size:1.18rem;font-weight:800;word-break:break-word}
.avh-ticket__status{margin-top:6px;font-weight:600}
.avh-ticket__date{margin-top:6px;font-size:.88rem;color:#6b7280}
.avh-summary{margin-bottom:18px;color:#6b7280}
.avh-ar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.avh-ar{border:1px solid #e5e7eb;border-radius:16px;padding:18px;text-align:center}
.avh-ar__qr{display:block;max-width:100%;height:auto;margin:0 auto 14px}
.avh-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.avh-preview-details{display:grid;grid-template-columns:minmax(140px,220px) 1fr;gap:10px 18px;margin:0}
.avh-preview-details dt{font-weight:600}.avh-preview-details dd{margin:0}

/* Header account icon */
.avh-account-link{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;color:inherit;text-decoration:none;border-radius:999px}
.avh-account-link:hover{opacity:.72}
.avh-account-link svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:900px){
    .avh-portal{width:min(100% - 28px,760px);margin-top:38px}
    .avh-auth-grid{grid-template-columns:1fr;max-width:620px;margin:0 auto}
    .avh-auth-card{padding:30px}
}

@media (max-width:720px){
    .avh-portal{width:min(100% - 24px,560px);margin:26px auto 48px}
    .avh-auth-tabs{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:5px;
        padding:5px;
        margin:0 0 12px;
        border-radius:13px;
        background:#f1f3f6;
    }
    .avh-auth-tab{
        min-height:42px;
        border:0;
        border-radius:10px;
        background:transparent;
        color:#68707e;
        font:inherit;
        font-size:.92rem;
        font-weight:700;
        cursor:pointer;
    }
    .avh-auth-tab.is-active{background:#fff;color:#111827;box-shadow:0 2px 8px rgba(15,23,42,.08)}
    .avh-auth-grid{display:block;max-width:none}
    .avh-auth-card{display:none;padding:24px;border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.045)}
    .avh-auth-card.is-active{display:block}
    .avh-auth-heading{margin-bottom:22px}
    .avh-auth-heading h2,
    .avh-card--content > h2{font-size:1.85rem!important;line-height:1.08!important;letter-spacing:-.025em}
    .avh-auth-heading p{font-size:.9rem;margin-top:8px}
    .avh-nav{display:grid;grid-template-columns:1fr 1fr}
    .avh-nav__logout{margin-left:0}
    .avh-ticket-grid{grid-template-columns:1fr 1fr}
    .avh-preview-details{grid-template-columns:1fr;gap:2px}
    .avh-preview-details dd{margin:0 0 10px}
}

@media (max-width:480px){
    .avh-portal{width:calc(100% - 20px);margin-top:18px}
    .avh-auth-card{padding:20px 18px}
    .avh-auth-heading h2,
    .avh-card--content > h2{font-size:1.7rem!important}
    .avh-field input,
    .avh-card #loginform input[type="text"],
    .avh-card #loginform input[type="password"]{height:44px}
    .avh-nav,.avh-ticket-grid{grid-template-columns:1fr}
    .avh-card{padding:20px 18px}
}
