/* =============================================================
   VoxTech3D — AUTH PAGES (self-contained design, custom classes)
   Does NOT rely on Bootstrap utilities for layout. Load AFTER
   Bootstrap. Image paths are relative to this file
   (public/assets/css -> ../images/bg).
   ============================================================= */

* { box-sizing: border-box; }

.vt-auth {
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #111827;
}

/* ---- Left: dark image panel with centered logo ---- */
.vt-auth__visual {
    flex: 0 0 50%;
    max-width: 50%;
    background: #0a1020 url('../images/bg/login-bg.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}
.vt-auth__logo {
    width: 240px;
    max-width: 70%;
    height: auto;
    display: block;
}

/* ---- Right: white form panel ---- */
.vt-auth__form {
    flex: 0 0 50%;
    max-width: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}
.vt-auth__inner { width: 100%; max-width: 400px; }
.vt-auth__title { font-size: 2rem; font-weight: 700; margin: 0 0 2rem; }
.vt-auth__subtitle { color: #6b7280; font-size: .95rem; margin: -1.25rem 0 1.75rem; }

/* ---- Underline fields ---- */
.vt-field { position: relative; margin-bottom: 1.75rem; }
.vt-field__input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d7dbe0;
    background: transparent;
    padding: 8px 32px 8px 0;
    font-size: 1rem;
    color: #111827;
    outline: none;
    transition: border-color .15s ease;
}
.vt-field__input::placeholder { color: #9aa1ab; }
.vt-field__input:focus { border-bottom-color: #111827; }
.vt-field--error .vt-field__input { border-bottom-color: #dc2626; }

.vt-field__toggle {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #9aa1ab; cursor: pointer;
    padding: 4px; font-size: 1.05rem; line-height: 1;
}
.vt-field__toggle:hover { color: #111827; }

/* ---- Error pill ---- */
.vt-alert {
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
    border-radius: 999px; padding: 10px 18px; font-size: .9rem;
    text-align: center; margin-bottom: 1.5rem;
}
.vt-alert--success {
    background: #ecfdf5; border-color: #bbf7d0; color: #15803d;
}
.vt-inline-error { color: #dc2626; font-size: .8rem; margin-top: 6px; }

/* ---- Buttons ---- */
.vt-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 8px; cursor: pointer;
    font-size: 1rem; font-weight: 600; padding: 12px 32px;
    transition: opacity .15s ease, background .15s ease;
    text-decoration: none;
}
.vt-btn--dark { background: #111827; color: #fff; }
.vt-btn--dark:hover { background: #000; color: #fff; }
.vt-btn--block { width: 100%; }

.vt-actions { display: flex; align-items: center; gap: 24px; margin-top: 2rem; }
.vt-link { color: #111827; text-decoration: underline; font-size: .95rem; }
.vt-link:hover { color: #374151; }
.vt-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: #111827; text-decoration: none; font-size: .95rem; margin-top: 1.75rem;
}
.vt-back:hover { color: #374151; }

/* ---- Centered-card variant (Check Your Email) ---- */
.vt-auth--center {
    background: #0a1020 url('../images/bg/login-bg.jpg') center / cover no-repeat;
    align-items: center; justify-content: center; padding: 24px;
}
.vt-card {
    background: #fff; border-radius: 16px; max-width: 460px; width: 100%;
    padding: 48px 40px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.vt-card__title { font-size: 2rem; font-weight: 700; margin: 0 0 12px; }

/* ---- Responsive: stack, shrink image panel ---- */
@media (max-width: 768px) {
    .vt-auth { flex-direction: column; }
    .vt-auth__visual, .vt-auth__form { flex-basis: auto; max-width: 100%; }
    .vt-auth__visual { min-height: 200px; padding: 24px; }
    .vt-auth__logo { width: 180px; }
    .vt-auth__form { padding: 32px 24px; }
}
