/* -------------------------------------------------- */
/*  BROWNBAERTECH-STYLE LIGHT BLUE MODERN THEME       */
/* -------------------------------------------------- */

:root{
  --bg-1: #e6f2ff;       /* top — pale blue */
  --bg-2: #cbdfff;       /* mid — cloudy blue */
  --bg-3: #809cd6;       /* bottom — soft steel blue */
  --card-bg: #ffffff;
  --text-dark: #10203b;
  --text-muted: #6c7a96;
  --accent-1: #2563eb;
  --accent-2: #2e66ff;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 18px rgba(0, 32, 91, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* -------------------------------------------------- */
/*  GLOBAL PAGE BACKGROUND                            */
/* -------------------------------------------------- */
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 60%, var(--bg-3) 100%);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  font-size:15px;
}

/* -------------------------------------------------- */
/*  MAIN CONTAINER                                    */
/* -------------------------------------------------- */
.site-container{
  width:94%;
  max-width:1024px;
  margin:0 auto;
}

/* -------------------------------------------------- */
/*  HEADER / NAVBAR                                   */
/* -------------------------------------------------- */
.site-header{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:inherit;
}

.brand-mark{
  width:40px;
  height:40px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color:white;
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
}

.brand-name{
  font-size:1.05rem;
  font-weight:600;
}

.nav{
  display:flex;
  gap:14px;
}

.nav-item{
  font-weight:600;
  text-decoration:none;
  padding:8px 11px;
  border-radius:8px;
  color: var(--accent-1);
}
.nav-item:hover{
  background: rgba(37,99,235,0.10);
}

.muted{ color:var(--text-muted); }

/* -------------------------------------------------- */
/*  GLOBAL CONTENT                                    */
/* -------------------------------------------------- */
.main-content{
  padding:34px 0;
  min-height:70vh;
}

/* -------------------------------------------------- */
/*  FLASH MESSAGES                                    */
/* -------------------------------------------------- */
.flashes-global{
  margin-bottom:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.flash{
  padding:10px 12px;
  border-radius:10px;
  font-size:0.95rem;
}

.flash.success{ background:#ecfdf5; color:#065f46; }
.flash.danger{ background:#fee2e2; color:#7a1a1a; }
.flash.info{ background:#eef2ff; color:#3730a3; }

/* -------------------------------------------------- */
/*  LOGIN PAGE PANELS                                 */
/* -------------------------------------------------- */
.auth-page{
  display:flex;
  gap:28px;
  justify-content:center;
  align-items:stretch;
}

.auth-card,
.auth-side{
  background: var(--card-bg);
  border-radius:14px;
  padding:28px;
  border: none;
  box-shadow: var(--shadow);
  color: var(--text-dark);
}

/* -------------------------------------------------- */
/*  LOGIN FORM                                        */
/* -------------------------------------------------- */
.auth-form{
  display:block;
  margin-top:6px;
}
.form {
  max-width: 420px;
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 0 auto; /* centers the form */
}

.form input,
.form select {
  width: 100%;
  max-width: 320px;  /* <- THIS is the shrink */
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d2dae8;
}

fieldset {
  max-width: 320px;
}

.form label {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}


.field{ margin-bottom:14px; }

.field-label{
  display:block;
  font-size:0.82rem;
  color:#475569;
  margin-bottom:6px;
}

input[type="text"],
input[type="password"],
input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #d2dae8;
  font-size:0.95rem;
  outline:none;
}

input:focus{
  border-color: var(--accent-1);
  box-shadow:0 5px 14px rgba(37,99,235,0.18);
}

.form-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:8px;
}

.remember{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--text-dark);
}

/* BUTTONS */
.btn-primary{
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  color:white;
  padding:10px 16px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  box-shadow:0 6px 18px rgba(37,99,235,0.18);
}
.btn-primary:active{
  transform:translateY(1px);
}

.link-muted{
  color:var(--text-muted);
  text-decoration:none;
}

/* -------------------------------------------------- */
/*  TABLES                                            */
/* -------------------------------------------------- */
.invoices{
  width:100%;
  background:white;
  border-radius:12px;
  border-collapse:collapse;
  overflow:hidden;
  box-shadow: var(--shadow);
}

.invoices th{
  text-align:left;
  padding:12px 14px;
  background:#f6f8ff;
  font-weight:600;
  border-bottom:1px solid #e5e7eb;
}

.invoices td{
  padding:12px 14px;
  border-bottom:1px solid #eef2f7;
  font-size:0.95rem;
}

/* -------------------------------------------------- */
/*  FOOTER                                            */
/* -------------------------------------------------- */
.site-footer{
  padding:12px 0;
  text-align:center;
  color: var(--text-muted);
  font-size:0.9rem;
  border-top: 1px solid var(--border);
}

/* -------------------------------------------------- */
/*  RESPONSIVE                                        */
/* -------------------------------------------------- */
@media (max-width:900px){
  .auth-page{
    flex-direction:column;
    gap:16px;
  }
  .auth-card,
  .auth-side{
    width:100%;
  }
}
