/* styles.css - responsive centered card + background */
:root { --card-w: 420px; --accent: #2b6cb0; --muted: #6b7280; }

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('https://images.unsplash.com/photo-1508780709619-79562169bc64?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;

  margin: 0;
  min-height: 100%;
  width: 100%;
  font-family: "Poppins", Arial, sans-serif;
  background: #ffffff;
  display: block;
  padding: 0;
  overflow-x: hidden;
}

/* Card */
.card{
  width: min(var(--card-w), 100%);
  padding:28px;
  backdrop-filter: blur(6px);
  
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

/* Header */
.card h1{margin:0 0 6px;font-size:20px;color:#0f172a}
.card p.lead{margin:0 0 18px;color:var(--muted);font-size:14px}

/* Form */
.form-group{margin-bottom:14px}
label{display:block;margin-bottom:6px;font-size:13px;color:#111827}
input[type="email"], input[type="password"], input[type="text"]{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #e6e9ef;
  font-size:14px;
}
.small{font-size:12px;color:var(--muted);margin-top:6px}

/* Buttons */
.btn{
  display:inline-block;
  width:100%;
  padding:10px 14px;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  border:none;
  font-weight:600;
  cursor:pointer;
}
.link-row{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
a.small-link{font-size:13px;color:var(--accent);text-decoration:none}

/* Responsive tweaks */
/* =========================================
   FION GLOBAL STYLES
========================================= */

:root {
  --card-w: 420px;
  --accent: #2b6cb0;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  display: block;
  overflow-x: hidden;
}

/* Prevent images from overflowing */
img {
  max-width: 100%;
}

/* =========================================
   CARD
========================================= */

.card {
  width: min(var(--card-w), 100%);
  padding: 28px;
  backdrop-filter: blur(6px);
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

/* =========================================
   CARD HEADER
========================================= */

.card h1 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #0f172a;
}

.card p.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   FORM
========================================= */

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #111827;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  font-size: 14px;
}

.small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

a.small-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

/* =========================================
   MOBILE CARD RESPONSIVENESS
========================================= */

@media (max-width: 480px) {
  .card {
    width: 100%;
    padding: 18px;
    border-radius: 10px;
  }
}

/* =========================================
   GLOBAL MOBILE FIX
========================================= */

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  img {
    height: auto;
  }
}
