/* myvisicard auth pages — matches public-premium brand system */

:root {
    --mvc-canvas: #f6f7f9;
    --mvc-ink: #0b1220;
    --mvc-muted: #475467;
    --mvc-line: #e6e8ee;
    --mvc-surface: #ffffff;
    --mvc-action: #0066ff;
    --mvc-accent: #00e5ff;
    --mvc-brand: linear-gradient(135deg, #0066ff 0%, #00e5ff 100%);
    --mvc-action-ink: #ffffff;
    --mvc-radius: 16px;
    --mvc-shadow: 0 18px 50px rgba(0, 102, 255, 0.12);
}

body.mvc-auth {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(0, 229, 255, 0.18), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(0, 102, 255, 0.14), transparent 50%),
        var(--mvc-canvas);
    color: var(--mvc-ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    overflow-x: clip;
}

body.mvc-auth .phpdebugbar {
    display: none !important;
}

body.mvc-auth .mvc-auth-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.mvc-auth .mvc-auth-lang {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
}

body.mvc-auth.rtl .mvc-auth-lang {
    right: auto;
    left: 1rem;
}

body.mvc-auth .mvc-auth-lang .btn {
    background: var(--mvc-surface) !important;
    border: 1px solid var(--mvc-line) !important;
    color: var(--mvc-ink) !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    box-shadow: none;
}

body.mvc-auth .mvc-auth-lang .dropdown-menu {
    border: 1px solid var(--mvc-line);
    border-radius: 12px;
    box-shadow: var(--mvc-shadow);
    padding: 0.35rem;
}

body.mvc-auth .mvc-auth-lang .dropdown-item.active,
body.mvc-auth .mvc-auth-lang .dropdown-item:active {
    background: #eff6ff;
    color: var(--mvc-action);
}

body.mvc-auth .mvc-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1.25rem 2rem;
}

body.mvc-auth .mvc-auth-panel {
    width: min(440px, 100%);
}

body.mvc-auth .mvc-auth-panel.mvc-auth-panel-wide {
    width: min(520px, 100%);
}

body.mvc-auth .mvc-auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

body.mvc-auth .mvc-auth-brand img {
    display: block;
    height: 48px;
    width: auto;
    object-fit: contain;
}

body.mvc-auth .mvc-auth-card {
    background: var(--mvc-surface);
    border: 1px solid var(--mvc-line);
    border-radius: var(--mvc-radius);
    box-shadow: var(--mvc-shadow);
    padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 576px) {
    body.mvc-auth .mvc-auth-card {
        padding: 2rem 2rem 1.75rem;
    }
}

body.mvc-auth .mvc-auth-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--mvc-ink);
}

body.mvc-auth .mvc-auth-lead {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--mvc-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

body.mvc-auth .mvc-auth-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mvc-ink);
}

body.mvc-auth .mvc-auth-field {
    margin-bottom: 1rem;
}

body.mvc-auth .mvc-auth-input,
body.mvc-auth .form-control.mvc-auth-input,
body.mvc-auth .mvc-auth-card .form-control {
    min-height: 46px;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--mvc-line);
    border-radius: 12px;
    background: #fafbfc;
    color: var(--mvc-ink);
    font-size: 1rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.mvc-auth .mvc-auth-input:focus,
body.mvc-auth .form-control.mvc-auth-input:focus,
body.mvc-auth .mvc-auth-card .form-control:focus {
    border-color: var(--mvc-action) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12) !important;
    outline: none;
}

body.mvc-auth .mvc-auth-password-wrap {
    position: relative;
}

body.mvc-auth .mvc-auth-password-wrap .input-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0.85rem;
    display: flex;
    align-items: center;
    color: var(--mvc-muted);
    cursor: pointer;
}

body.mvc-auth .mvc-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

body.mvc-auth .mvc-auth-btn,
body.mvc-auth .login-btn,
body.mvc-auth .register-btn,
body.mvc-auth .reset-link,
body.mvc-auth .btn.reset-link,
body.mvc-auth .modern-login-btn,
body.mvc-auth .modern-register-btn,
body.mvc-auth .modern-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border: none !important;
    border-radius: 999px !important;
    background: var(--mvc-brand) !important;
    color: var(--mvc-action-ink) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(0, 102, 255, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.mvc-auth .mvc-auth-btn:hover,
body.mvc-auth .login-btn:hover,
body.mvc-auth .register-btn:hover,
body.mvc-auth .reset-link:hover,
body.mvc-auth .modern-login-btn:hover,
body.mvc-auth .modern-register-btn:hover,
body.mvc-auth .modern-reset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 102, 255, 0.35);
    color: #fff !important;
}

body.mvc-auth .mvc-auth-btn-ghost,
body.mvc-auth .mvc-auth-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--mvc-line) !important;
    border-radius: 999px !important;
    background: var(--mvc-surface) !important;
    color: var(--mvc-ink) !important;
    font-weight: 600;
    text-decoration: none !important;
}

body.mvc-auth .mvc-auth-btn-ghost:hover,
body.mvc-auth .mvc-auth-cancel:hover {
    background: #f3f4f6 !important;
    color: var(--mvc-ink) !important;
}

body.mvc-auth .mvc-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

body.mvc-auth .mvc-auth-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 420px) {
    body.mvc-auth .mvc-auth-actions-row {
        grid-template-columns: 1fr;
    }
}

body.mvc-auth .mvc-auth-footer-link {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--mvc-muted);
    font-size: 0.92rem;
}

body.mvc-auth .mvc-auth-footer-link a,
body.mvc-auth .mvc-auth-link,
body.mvc-auth a.link-info,
body.mvc-auth .modern-link {
    color: var(--mvc-action) !important;
    font-weight: 600;
    text-decoration: none !important;
}

body.mvc-auth .mvc-auth-footer-link a:hover,
body.mvc-auth .mvc-auth-link:hover {
    color: #0052cc !important;
}

body.mvc-auth .mvc-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--mvc-muted);
}

body.mvc-auth .mvc-auth-check .form-check-input {
    margin-top: 0.2rem;
    border-color: var(--mvc-line);
}

body.mvc-auth .mvc-auth-check .form-check-input:checked {
    background-color: var(--mvc-action);
    border-color: var(--mvc-action);
}

body.mvc-auth .mvc-auth-social {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

body.mvc-auth .mvc-auth-social .btn,
body.mvc-auth .google-btn,
body.mvc-auth .facebook-btn,
body.mvc-auth .modern-social-btn {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--mvc-line) !important;
    border-radius: 12px !important;
    background: var(--mvc-surface) !important;
    color: var(--mvc-ink) !important;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: none !important;
}

body.mvc-auth .mvc-auth-copy {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--mvc-muted);
    font-size: 0.8rem;
}

body.mvc-auth .mvc-auth-copy a {
    color: var(--mvc-action);
    font-weight: 600;
    text-decoration: none;
}

/* Hide legacy chrome when present */
body.mvc-auth .top-vector,
body.mvc-auth .bottom-vector,
body.mvc-auth .login-img,
body.mvc-auth .register-img,
body.mvc-auth .forget-password-img {
    display: none !important;
}

body.mvc-auth .authImage {
    background-image: none !important;
    min-height: 100vh;
}

body.mvc-auth .required::after {
    content: '*';
    color: #e11d48;
    margin-left: 0.15rem;
}

/* Honeypot — invisible to users, filled by many bots */
body.mvc-auth .mvc-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
