/* ============================================================
   MyBotPlus — Register / Login page styles
   register.css — loaded ONLY on auth pages
   Matches brand: #00346C blue, #111827 dark, #4E8DC4 accent
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 4rem;
    background: #f9fafb;
}

/* ── Card ────────────────────────────────────────────────── */
.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 1px 6px rgba(0,0,0,.04);
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 480px;
}

@media (max-width: 520px) {
    .auth-card { padding: 2rem 1.25rem; border-radius: 16px; }
}

/* ── Brand mark ──────────────────────────────────────────── */
.auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-brand img {
    max-width: 100%;
    height: auto;
}
.auth-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -.02em;
}
.auth-brand-name span { color: #4E8DC4; }

/* ── Headings ────────────────────────────────────────────── */
.auth-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -.02em;
}
.auth-sub {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

/* ── Google button ───────────────────────────────────────── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    font-family: inherit;
}
.btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
}
.auth-divider-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.auth-divider-text {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Form fields ─────────────────────────────────────────── */
.auth-form-group {
    margin-bottom: 1rem;
}
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.auth-input {
    width: 100%;
    padding: 10px 13px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 9px;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.auth-input:focus {
    border-color: #00346C;
    box-shadow: 0 0 0 3px rgba(0,52,108,.1);
}
.auth-input::placeholder { color: #9ca3af; }

/* URL input with prefix */
.auth-input-group {
    display: flex;
    border: 1.5px solid #d1d5db;
    border-radius: 9px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.auth-input-group:focus-within {
    border-color: #00346C;
    box-shadow: 0 0 0 3px rgba(0,52,108,.1);
}
.auth-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f3f4f6;
    border-right: 1.5px solid #d1d5db;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.auth-input-group .auth-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
}
.auth-input-group .auth-input:focus {
    border: none;
    box-shadow: none;
}

.auth-input-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.5;
}

/* ── Submit button ───────────────────────────────────────── */
.btn-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #00346C;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,52,108,.3);
    margin-top: 1.25rem;
}
.btn-auth-submit:hover {
    background: #00254D;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,52,108,.35);
}
.btn-auth-submit:active { transform: scale(.98); }
.btn-auth-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* ── Footer links ────────────────────────────────────────── */
.auth-footer {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 1.25rem;
}
.auth-footer a {
    color: #00346C;
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.auth-terms {
    text-align: center;
    font-size: 11.5px;
    color: #9ca3af;
    margin-top: .75rem;
    line-height: 1.5;
}
.auth-terms a { color: #6b7280; text-decoration: underline; }

/* ── Alert messages ──────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: none;
}
.auth-alert.show { display: flex; }
.auth-alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.auth-alert-ok    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ── Password strength ───────────────────────────────────── */
.pw-strength {
    height: 3px;
    border-radius: 2px;
    margin-top: 6px;
    background: #e5e7eb;
    overflow: hidden;
}
.pw-strength-bar {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width .3s, background .3s;
}

/* ── Spinner ─────────────────────────────────────────────── */
.auth-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Password toggle ─────────────────────────────────────── */
.pw-wrap { position: relative; }
.pw-wrap .auth-input { padding-right: 42px; }
.pw-toggle {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #9ca3af; padding: 2px; line-height: 1;
    transition: color .15s;
}
.pw-toggle:hover { color: #374151; }

/* ── Trust badges ────────────────────────────────────────── */
.auth-trust {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.auth-trust-item span { font-size: 14px; }