/* =========================
   AUTH PAGE (NEUTRAL PRO)
========================= */

body {
    background: radial-gradient(circle at top, #ffffff 0%, #f1f5f9 60%, #e5e7eb 100%);
}

/* центрирование */
.auth-wrapper {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

/* карточка */
.auth-card {
    width: 100%;
    max-width: 400px;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    padding: 26px 22px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.06);

    animation: fadeIn .35s ease;
}

/* заголовок */
.auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;

    color: #111827;
}

/* input */
.auth-input {
    width: 100%;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    padding: 11px 12px;

    font-size: 14px;

    margin-bottom: 10px;

    background: #f9fafb;
    transition: all .2s ease;
}

.auth-input:focus {
    border-color: #111827;
    background: #ffffff;
    outline: none;

    box-shadow: 0 0 0 2px rgba(17,24,39,0.08);
}

/* =========================
   BUTTON (COMPACT NEUTRAL)
========================= */

.auth-btn {
    display: block;
    margin: 14px auto 0;

    width: auto;
    min-width: 140px;

    padding: 10px 18px;

    background: #111827;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.3px;

    cursor: pointer;

    transition: all .2s ease;
}

/* hover */
.auth-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* active */
.auth-btn:active {
    transform: scale(0.96);
}

/* =========================
   LINKS
========================= */

.auth-links {
    display: flex;
    justify-content: space-between;

    font-size: 12.5px;
    margin-top: 14px;

    color: #6b7280;
}

.auth-links a {
    color: #374151;
    text-decoration: none;
}

.auth-links a:hover {
    color: #000;
}

/* =========================
   CAPTCHA
========================= */

.auth-captcha {
    display: flex;
    justify-content: center;
    margin: 12px 0 6px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 480px){

    .auth-wrapper {
        padding: 14px;
    }

    .auth-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 18px;
    }

    .auth-btn {
        width: 100%;
        min-width: auto;
    }

}

/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {
    from {opacity:0; transform:translateY(10px);}
    to {opacity:1; transform:translateY(0);}
}




/* =========================
   OTP INPUTS FIX
========================= */

.auth-otp {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-bottom: 10px;
}

/* сами input */
.auth-otp input {
    width: 44px;
    height: 48px;

    text-align: center;
    font-size: 18px;
    font-weight: 600;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #f9fafb;

    transition: all .2s ease;
}
.auth-otp-desktop{display:flex!important}
.auth-otp-mobile{display:none!important}
.auth-otp-mobile input{box-sizing:border-box;width:100%;height:52px;font-size:21px;letter-spacing:8px;padding:0 10px 0 18px}

/* focus */
.auth-otp input:focus {
    border-color: #111827;
    background: #fff;
    outline: none;

    box-shadow: 0 0 0 2px rgba(17,24,39,0.1);
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 600px) and (pointer: coarse){

    .auth-otp-desktop{display:none!important}
    .auth-otp-mobile{display:flex!important;width:100%}
    .auth-otp-mobile input{width:100%;height:52px;font-size:21px;letter-spacing:8px}

}





.auth-success-icon{
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 30px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-text{
    text-align: center;
    margin-bottom: 15px;
    color: #ccc;
}

.auth-info-block{
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
}

.auth-info-block p{
    margin: 5px 0;
}

.auth-btn{
    display:block;
    text-align:center;
    text-decoration:none;
}



.auth-info-item{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-info-item p{
    margin: 0;
}

.auth-info-icon{
    min-width: 20px;
    margin-top: 2px;
    opacity: 0.7;
}
.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0 14px;color:#667085;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#d0d5dd)}.auth-divider:after{background:linear-gradient(90deg,#d0d5dd,transparent)}
.auth-provider-group{width:100%}.auth-provider-btn{position:relative;display:grid;grid-template-columns:26px 1fr 18px;align-items:center;gap:12px;width:100%;min-height:50px;box-sizing:border-box;padding:11px 14px;border:1px solid #cbd5e1;border-radius:12px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);color:#172033;font-size:14px;font-weight:650;line-height:1.3;text-decoration:none;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}.auth-provider-btn:hover{transform:translateY(-1px);border-color:#3b82f6;background:#fff;box-shadow:0 8px 22px rgba(37,99,235,.13)}.auth-provider-btn:active{transform:translateY(0);box-shadow:0 2px 8px rgba(37,99,235,.12)}.auth-provider-btn:focus-visible{outline:3px solid rgba(59,130,246,.25);outline-offset:2px;border-color:#2563eb}.auth-provider-icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:4px;box-sizing:border-box;border-radius:8px;background:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.07)}.auth-provider-btn .auth-provider-icon svg{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 18px!important}.auth-provider-label{min-width:0;text-align:center;white-space:normal}.auth-provider-arrow{color:#94a3b8;font-size:23px;font-weight:400;line-height:1;transition:transform .18s ease,color .18s ease}.auth-provider-btn:hover .auth-provider-arrow{transform:translateX(2px);color:#2563eb}

@media (max-width:480px){.auth-provider-btn{min-height:52px;padding:12px;font-size:14px;border-radius:11px}.auth-divider{margin:18px 0 13px}.auth-provider-arrow{font-size:21px}}
@media (max-width:360px){.auth-wrapper{padding:10px}.auth-card{padding:18px 13px}.auth-provider-btn{grid-template-columns:24px 1fr;padding:11px 12px;gap:9px}.auth-provider-arrow{display:none}.auth-captcha{transform:scale(.88);transform-origin:center}.auth-provider-label{font-size:13px}}
@media (prefers-reduced-motion:reduce){.auth-provider-btn,.auth-provider-arrow{transition:none}.auth-card{animation:none}}

/* Centered provider list: each future provider is one compact row. */
.auth-divider{margin:14px auto 10px;max-width:320px}
.auth-provider-list{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:min(100%,320px);margin:0 auto}
.auth-provider-list .auth-provider-btn{grid-template-columns:24px minmax(0,1fr) 16px;gap:10px;min-height:44px;padding:9px 12px;border-radius:10px;font-size:13.5px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.auth-provider-list .auth-provider-icon{width:24px;height:24px;padding:3px;border-radius:6px;box-shadow:none}
.auth-provider-list .auth-provider-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.auth-provider-list .auth-provider-arrow{font-size:19px}
@media(max-width:480px){.auth-provider-list{width:100%;gap:7px}.auth-provider-list .auth-provider-btn{min-height:46px;padding:10px 12px}.auth-divider{margin-top:13px}}
@media(max-width:360px){.auth-provider-list .auth-provider-btn{grid-template-columns:22px minmax(0,1fr) 14px;gap:8px;padding:9px 10px}.auth-provider-list .auth-provider-icon{width:22px;height:22px}.auth-provider-list .auth-provider-arrow{display:block;font-size:17px}}
