/* Hardware365 – login / register / forgot password / OTP pages.
   Loaded last in resources/views/auth/layouts/app.blade.php so it overrides the older auth styles. */
body.auth-h {
    --blue: #0b7fd1; --blue-600: #0a70ba; --blue-50: #eef6fd; --navy: #0b1d36; --ink: #0f172a;
    --text: #1e293b; --muted: #64748b; --line: #e3e8ef; --line-2: #cfd8e3; --brass: #a8773a; --danger: #dc2626;
    margin: 0; min-height: 100vh; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text); background: #f5f7fa;
    background-image: radial-gradient(900px 420px at 110% -10%, rgba(11, 127, 209, .12), transparent 60%), radial-gradient(700px 380px at -10% 110%, rgba(168, 119, 58, .10), transparent 60%);
    -webkit-font-smoothing: antialiased;
}
body.auth-h .login-section, body.auth-h .auth-wrapper { min-height: 100vh; margin: 0 !important; padding: 24px 16px 40px; display: flex; align-items: center; justify-content: center; }
body.auth-h .login-container { width: 100%; max-width: 960px; margin: 0 auto; }
body.auth-h .brands-logo { text-align: center; margin-bottom: 20px; }
body.auth-h .brands-logo img, body.auth-h .login-container img { max-width: 180px !important; height: auto; display: inline-block; }

body.auth-h .login-card { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(11, 29, 54, .35); min-height: 0; }
@media (min-width: 860px) { body.auth-h .login-card { grid-template-columns: 1fr 1.1fr; min-height: 520px; } }

/* Welcome panel */
body.auth-h .login-welcome { position: relative; overflow: hidden; padding: 28px 24px !important; min-height: 0 !important; display: flex; align-items: flex-end;
    background: linear-gradient(150deg, #0b1d36 0%, #10325c 70%, #0b5f9e 130%) !important; color: #fff; }
@media (min-width: 860px) { body.auth-h .login-welcome { padding: 44px 40px !important; align-items: center; } }
body.auth-h .login-welcome::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
body.auth-h .welcome-pattern { display: none; }
body.auth-h .welcome-content { position: relative; z-index: 1; color: #fff; }
body.auth-h .welcome-content::before { content: "HARDWARE365"; display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #e3bd83; margin-bottom: 10px; }
body.auth-h .welcome-content h1, body.auth-h .welcome-content h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
body.auth-h .welcome-content p { color: rgba(255, 255, 255, .78); font-size: 15px; margin: 0; max-width: 360px; }
body.auth-h .auth-benefits { list-style: none; padding: 0; margin: 20px 0 0; display: none; gap: 12px; }
@media (min-width: 860px) { body.auth-h .auth-benefits { display: grid; } }
body.auth-h .auth-benefits li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .9); }
body.auth-h .auth-benefits i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #7cc4f5; font-size: 16px; flex-shrink: 0; }

/* Form side */
body.auth-h .login-form-container { padding: 28px 22px 30px !important; background: #fff; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 860px) { body.auth-h .login-form-container { padding: 48px 48px !important; } }
body.auth-h .login-form-container h2, body.auth-h .login-form-container h3 { color: var(--ink); font-weight: 800; }
body.auth-h .form-group { margin-bottom: 16px !important; }
body.auth-h .form-label, body.auth-h .auth-label { display: block; font-size: 13px !important; font-weight: 700 !important; color: var(--ink) !important; margin-bottom: 6px !important; }
body.auth-h .input-wrapper, body.auth-h .auth-input-wrap { position: relative; display: flex; align-items: center; margin-bottom: 0; }
body.auth-h .input-wrapper.mb-5 { margin-bottom: 0 !important; }
body.auth-h .input-prefix, body.auth-h .auth-input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--muted); z-index: 2; pointer-events: none; }
body.auth-h .input-prefix svg, body.auth-h .auth-input-prefix svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.auth-h .form-input, body.auth-h .auth-input-wrap input, body.auth-h input.form-control {
    width: 100%; height: 50px !important; padding: 0 14px 0 44px !important; border: 1.5px solid var(--line-2) !important; border-radius: 12px !important;
    background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; box-shadow: none; }
body.auth-h .form-input:focus, body.auth-h .auth-input-wrap input:focus { outline: none; border-color: var(--blue) !important; box-shadow: 0 0 0 4px rgba(11, 127, 209, .12) !important; }
body.auth-h ::placeholder { color: #94a3b8 !important; }
body.auth-h #otp, body.auth-h input[name="otp"] { letter-spacing: .4em; font-weight: 700; font-size: 18px; }
body.auth-h .form-hint, body.auth-h .auth-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
body.auth-h .auth-error { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 6px; }

/* Buttons */
body.auth-h .btn-primary, body.auth-h .login-form-container button.btn-primary, body.auth-h .auth-submit-btn, body.auth-h .submitbtn {
    display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px 20px !important;
    background: var(--blue) !important; border: 0 !important; border-radius: 12px !important; color: #fff !important;
    font-weight: 700 !important; font-size: 16px; transition: background .15s, transform .05s; box-shadow: 0 10px 24px -12px rgba(11, 127, 209, .7); }
body.auth-h .btn-primary:hover, body.auth-h .auth-submit-btn:hover { background: var(--blue-600) !important; }
body.auth-h .btn-primary:active { transform: translateY(1px); }
body.auth-h .btn-primary:disabled { opacity: .6; }
body.auth-h .resendotp, body.auth-h .auth-ghost-btn { background: none !important; border: 0; color: var(--blue) !important; font-weight: 700; padding: 0; }
body.auth-h .auth-otp-row { margin-top: 4px; }

/* Divider & footer links */
body.auth-h .auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 !important; }
body.auth-h .auth-divider::before, body.auth-h .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
body.auth-h .auth-divider p { margin: 0; font-size: 14px !important; color: var(--text); }
body.auth-h .form-footer, body.auth-h .auth-secondary-links { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px !important; }
body.auth-h a { color: var(--blue); font-weight: 600; text-decoration: none; }
body.auth-h a:hover { color: var(--blue-600); text-decoration: underline; }
body.auth-h .login-form-container a[href*="forgot"] { font-size: 13px; }

/* Stand-alone card pages (OTP verification) */
body.auth-h .auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; box-shadow: 0 30px 70px -30px rgba(11, 29, 54, .35); }
body.auth-h .auth-title { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
body.auth-h .auth-subtitle { color: var(--muted); }
body.auth-h .auth-logo-mark { margin: 0 auto 12px; }

/* Toasts */
body.auth-h .toast-message { top: 16px; right: 16px !important; left: 16px; margin-left: auto; min-width: 0; max-width: 420px; border-radius: 14px; animation: none; font-size: 14px; }
body.auth-h .toast-success { background: #15803d; }
body.auth-h .toast-error { background: var(--danger); }

/* "Back to store" link under the card */
body.auth-h .login-container::after { content: ""; display: block; height: 8px; }
@media (max-width: 859.98px) {
    body.auth-h .login-section { align-items: flex-start; padding-top: 20px; }
    body.auth-h .login-welcome { padding: 22px 22px !important; }
    body.auth-h .welcome-content h1 { font-size: 22px; }
    body.auth-h .welcome-content p { font-size: 14px; }
}
body.auth-h .auth-divider > span, body.auth-h .auth-divider hr { display: none; }
body.auth-h .auth-divider p::before, body.auth-h .auth-divider p::after { display: none !important; }
