/* ============================================================
   velocity-auth.css
   Login / Register / Forgot / Reset — 1free.eu

   Wymaga wcześniejszego załadowania velocity-tokens.css.
   ============================================================ */

.vl-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f0f4f8;
    padding: 2rem 1rem;
}

.vl-auth-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f4f8 50%, #e8f0fe 100%);
    z-index: 0;
}
.vl-auth-bg::before,
.vl-auth-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .06;
    background: var(--v-cyan);
}
.vl-auth-bg::before { width: 500px; height: 500px; top: -100px; right: -100px; }
.vl-auth-bg::after  { width: 300px; height: 300px; bottom: -80px; left: -80px; }

.vl-auth-wrap {
    position: relative; z-index: 1;
    width: 100%; max-width: 460px;
    display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.vl-auth-wrap--wide { max-width: 960px; }

.vl-auth-logo { text-align: center; }
.vl-auth-logo img { max-height: 36px; object-fit: contain; }
.vl-auth-logo__sub {
    display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
    color: #6b7280; margin-top: .25rem;
}

.vl-auth-card {
    width: 100%; background: #fff; border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08); box-shadow: 0 4px 24px rgba(0,0,0,.07);
    padding: 2.25rem 2rem;
}
.vl-auth-card__title { font-size: 1.5rem; font-weight: 700; color: var(--v-text); margin-bottom: .35rem; }
.vl-auth-card__sub   { font-size: .9rem; color: var(--v-muted); margin-bottom: 1.5rem; }

.vl-auth-icon-wrap {
    width: 52px; height: 52px; border-radius: 12px; background: #e8f4fd;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--v-cyan-dark); margin: 0 auto 1.25rem;
}

.vl-alert { border-radius: 8px; padding: .75rem 1rem; font-size: .875rem; margin-bottom: 1rem; }
.vl-alert--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.vl-alert--error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.vl-field { margin-bottom: 1.1rem; }
.vl-field__label {
    display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em;
    color: var(--v-muted); margin-bottom: .4rem;
}
.vl-field__input-wrap { position: relative; display: flex; align-items: center; }
.vl-field__icon { position: absolute; left: .9rem; color: #9ca3af; font-size: .85rem; pointer-events: none; }
.vl-field__input {
    width: 100%; border: 1.5px solid var(--v-border); border-radius: 8px;
    padding: .65rem .9rem .65rem 2.4rem; font-size: .95rem; color: var(--v-text);
    background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.vl-field__input--plain { padding-left: .9rem; }
.vl-field__input:focus { border-color: var(--v-cyan); box-shadow: 0 0 0 3px rgba(0,188,212,.12); }
.vl-field__eye { position: absolute; right: .75rem; background: none; border: none; color: #9ca3af; cursor: pointer; padding: 0; font-size: .9rem; }
.vl-field__hint { font-size: .78rem; margin-top: .3rem; }

.vl-field__subdomain {
    display: flex; align-items: center; border: 1.5px solid var(--v-border); border-radius: 8px;
    overflow: hidden; background: #fff; transition: border-color .15s;
}
.vl-field__subdomain:focus-within { border-color: var(--v-cyan); box-shadow: 0 0 0 3px rgba(0,188,212,.12); }
.vl-field__subdomain .vl-field__input { border: none; border-radius: 0; padding-left: .9rem; box-shadow: none; }
.vl-field__subdomain-suffix {
    white-space: nowrap; padding: 0 .75rem; font-size: .9rem; color: var(--v-muted);
    background: #f9fafb; border-left: 1px solid var(--v-border); height: 100%; display: flex; align-items: center;
}

.vl-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.vl-checkbox { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: #374151; cursor: pointer; user-select: none; }
.vl-checkbox--block { align-items: flex-start; }
.vl-checkbox input { margin-top: .15rem; }

.vl-auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

.vl-captcha { margin-bottom: 1rem; }

.vl-btn {
    display: block; width: 100%; padding: .75rem 1.25rem; border-radius: 8px;
    font-size: .95rem; font-weight: 600; text-align: center; border: none; cursor: pointer;
    text-decoration: none; transition: all .15s;
}
.vl-btn--primary { background: var(--v-cyan); color: #fff; }
.vl-btn--primary:hover { background: var(--v-cyan-dark); color: #fff; }
.vl-btn--social { background: #fff; color: #374151; border: 1.5px solid var(--v-border); }
.vl-btn--social:hover { background: #f9fafb; color: var(--v-text); }

.vl-auth-divider {
    display: flex; align-items: center; text-align: center; margin: 1.25rem 0;
    color: #9ca3af; font-size: .75rem; letter-spacing: .1em; gap: .75rem;
}
.vl-auth-divider::before, .vl-auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--v-border); }

.vl-auth-back-link { display: block; text-align: center; font-size: .875rem; color: var(--v-cyan-dark); text-decoration: none; }
.vl-auth-back-link:hover { text-decoration: underline; }

.vl-link { color: var(--v-cyan-dark); text-decoration: none; }
.vl-link:hover { text-decoration: underline; }

.vl-auth-footer-link { font-size: .85rem; color: var(--v-muted); text-align: center; }
.vl-auth-footer-link a { color: var(--v-cyan-dark); font-weight: 600; text-decoration: none; }
.vl-auth-footer-legal { font-size: .75rem; color: #9ca3af; text-align: center; }
.vl-auth-footer-legal a { color: var(--v-muted); text-decoration: none; }

/* ── Rejestracja – grid 2-kolumnowy ── */
.vl-auth-register-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    width: 100%;
    align-items: start;
}

.vl-register-summary__card {
    background: #fff; border-radius: 14px; border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 4px 24px rgba(0,0,0,.07); padding: 1.5rem;
}
.vl-register-summary__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.vl-register-summary__row { display: flex; justify-content: space-between; font-size: .875rem; padding: .4rem 0; color: #374151; }
.vl-register-summary__divider { border: none; border-top: 1px solid var(--v-border); margin: .75rem 0; }
.vl-register-summary__total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; color: var(--v-text); margin-top: .5rem; }
.vl-register-summary__info { background: #f0f9ff; border-radius: 8px; padding: .75rem; font-size: .8rem; color: #0369a1; margin-top: 1rem; }

.vl-badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.vl-badge--cyan { background: var(--v-cyan); color: #fff; }

.vl-register-features { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.vl-register-feature { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: #374151; }
.vl-register-feature i {
    width: 36px; height: 36px; border-radius: 8px; background: #e8f4fd; color: var(--v-cyan-dark);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ============================================================
   MOBILE — na końcu arkusza, żeby wygrać kaskadę.
   ============================================================ */
@media (max-width: 760px) {
    .vl-auth-register-grid { grid-template-columns: 1fr; }
    .reg-summary-col       { order: -1; }
    .vl-register-features  { display: none; }
    .vl-register-summary__card { padding: 1rem; }
    .vl-register-summary__total { font-size: 1.1rem; }
}

@media (max-width: 600px) {
    .vl-field-row { grid-template-columns: 1fr; }
    .vl-auth-card { padding: 1.5rem 1.25rem; }
}
