:root{
  --navy:#071f3f;
  --navy2:#0e3a67;
  --gold:#c9a646;
  --green:#245b45;
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#dbe4f0;
  --danger:#b42318;
  --success:#067647;
  --shadow:0 20px 45px rgba(7,31,63,.12);
  --radius:22px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(36,91,69,.10), transparent 32%),
    linear-gradient(180deg,#f9fbff 0%,var(--bg) 100%);
  color:var(--text);
  line-height:1.65;
}

a{text-decoration:none;color:inherit}

.container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:40px 16px;
  background:
    linear-gradient(135deg, rgba(7,31,63,.94), rgba(36,91,69,.90)),
    radial-gradient(circle at 85% 10%, rgba(201,166,70,.25), transparent 28%);
}

.login-card{
  width:min(980px,100%);
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#fff;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.28);
}

.login-panel{
  padding:42px;
}

.login-info{
  padding:42px;
  background:linear-gradient(160deg,var(--navy),var(--green));
  color:#fff;
}

.logo-mark{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--gold),#f4dd91);
  color:var(--navy);
  font-weight:900;
  margin-bottom:18px;
}

h1,h2,h3{color:var(--navy);line-height:1.2}

.login-info h2,
.login-info h3{
  color:#fff;
}

.login-info p,
.login-info li{
  color:rgba(255,255,255,.85);
}

label{
  display:block;
  font-weight:800;
  color:var(--navy);
  margin:14px 0 7px;
}

input,textarea,select{
  width:100%;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:14px;
  font:inherit;
  background:#fff;
}

input:focus,textarea:focus,select:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(201,166,70,.16);
}

.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:none;
  border-radius:999px;
  padding:13px 20px;
  font-weight:900;
  cursor:pointer;
  background:linear-gradient(135deg,var(--gold),#f6df94);
  color:var(--navy);
}

.btn.full{width:100%;margin-top:18px}

.btn-outline{
  display:inline-flex;
  border:1px solid var(--line);
  border-radius:999px;
  padding:11px 16px;
  font-weight:800;
  color:var(--navy);
  background:#fff;
}

.alert{
  border-radius:14px;
  padding:12px 14px;
  margin:14px 0;
  font-weight:700;
}

.alert.error{background:#fff1f0;color:var(--danger);border:1px solid #fecdca}
.alert.success{background:#ecfdf3;color:var(--success);border:1px solid #abefc6}
.alert.info{background:#eff8ff;color:#175cd3;border:1px solid #b2ddff}

.topbar{
  background:var(--navy);
  color:#fff;
  border-bottom:5px solid var(--gold);
}

.topbar-inner{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-mark{
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,var(--gold),#f4dc89);
  color:var(--navy);
  font-weight:900;
}

.brand small{display:block;color:rgba(255,255,255,.72)}
.nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.nav a{
  color:rgba(255,255,255,.88);
  padding:9px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:.92rem;
}
.nav a:hover{background:rgba(255,255,255,.10);color:#fff}

.hero{
  padding:38px 0;
  background:linear-gradient(135deg,#ffffff,#f7f2df);
  border-bottom:1px solid var(--line);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:20px;
  align-items:center;
}

.hero h1{
  margin:0 0 8px;
  font-size:clamp(1.8rem,3vw,3rem);
}

.hero p{color:var(--muted);max-width:780px}

.user-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

.section{
  padding:34px 0;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
}

.card h3{margin-top:0}

.muted{color:var(--muted)}
.badge{
  display:inline-flex;
  padding:5px 10px;
  border-radius:999px;
  background:#f7eed6;
  color:#7a5a08;
  font-weight:900;
  font-size:.8rem;
}

.table-wrap{
  overflow:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

th,td{
  padding:13px 14px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

th{
  background:#f8fafc;
  color:var(--navy);
}

.link-card{
  display:grid;
  gap:10px;
  border:1px solid var(--line);
  border-left:5px solid var(--gold);
  border-radius:18px;
  padding:18px;
  background:#fff;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}

.link-card h3{margin:0}
.link-card p{margin:0;color:var(--muted)}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

.footer{
  margin-top:40px;
  background:var(--navy);
  color:rgba(255,255,255,.78);
  padding:24px 0;
  border-top:5px solid var(--gold);
  font-size:.92rem;
}

@media(max-width:850px){
  .login-card,.hero-grid,.grid{grid-template-columns:1fr}
}


/* Input field error */
input:invalid {
  border-color: #e74c3c; /* Red border for invalid input */
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.install-mobile-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f7f2df);
  box-shadow: 0 12px 28px rgba(7,31,63,.08);
}

.install-mobile-box h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.install-mobile-box p {
  margin: 0 0 12px;
}

.install-note {
  margin-top: 12px !important;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.45;
}


.login-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.login-logo {
  max-width: 82px;
  height: auto;
  display: block;
}

.biometric-box {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f7f2df);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(7,31,63,.08);
}

.fingerprint-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(7,31,63,.18);
}

.biometric-box strong {
  color: var(--navy);
  font-weight: 900;
}

.biometric-box p {
  margin: 4px 0 0;
  font-size: .9rem;
  line-height: 1.45;
}

@media(max-width:850px) {
  .login-logo-wrap {
    justify-content: center;
  }

  .biometric-box {
    align-items: flex-start;
  }
}

/* Keep login logo stable even when login error appears */
.login-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.login-logo {
  width: 82px;
  max-width: 82px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-mark {
  flex-shrink: 0;
}

.login-panel img {
  max-width: 82px;
  height: auto;
}

/* Stable Aqua-Nile logo size on login page */
.login-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.login-logo-wrap .login-logo {
  width: 78px !important;
  max-width: 78px !important;
  height: 78px !important;
  max-height: 78px !important;
  object-fit: contain !important;
  display: block;
  flex: 0 0 78px;
}

.login-logo-wrap .logo-mark {
  flex: 0 0 58px;
}

/* Ensure file input and button are styled properly */
input[type="file"] {
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 20px;
    display: block;
}

/* Button Styling */
button[type="submit"] {
    background: linear-gradient(135deg, var(--gold), #f6df94);
    border: none;
    border-radius: 18px;
    color: var(--navy);
    font-weight: 900;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #f6df94, var(--gold));
    color: var(--navy);
}

/* Style for success and error messages */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.alert.success {
    background-color: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}

.alert.error {
    background-color: #fff1f0;
    color: #b42318;
    border: 1px solid #fecdca;
}

/* =========================================================
   Board Portal Login Info Design - Shared for index.php and MVP.html
   ========================================================= */

.login-page-note {
    background: rgba(255, 255, 255, 0.96);
    border-left: 5px solid #c9a646;
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 22px;
    color: #1f2937 !important;
    line-height: 1.65;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.login-page-note strong {
    display: block;
    color: #102a4d !important;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.login-page-note p {
    color: #334155 !important;
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 0 0 14px;
}

.flag-wrap {
    text-align: center;
    margin: 20px 0 24px;
}

.login-info .ethiopia-flag {
    display: block;
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    object-fit: contain;
}

.flag-caption {
    margin-top: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc !important;
    line-height: 1.45;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.login-info h2,
.login-info > p,
.login-info ul,
.login-info li {
    color: #ffffff !important;
}

.login-info h2 {
    font-weight: 800;
}

.login-info ul {
    padding-left: 22px;
}