/* ============================================================
   OLPC-SMI STUDENT PORTAL STYLESHEET
   Our Lady of the Pillar College – San Manuel, Inc.
   San Manuel, Isabela
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES ───────────────────────────────────────── */
:root {
  --navy: #1a237e;
  --navy-dark: #0d1757;
  --navy-light: #283593;
  --gold: #f9c900;
  --text: #222;
  --muted: #666;
  --border: #ddd;
  --bg: #eef0f5;
}

/* ── BODY & BACKGROUND ───────────────────────────────────── */
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,23,87,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(26,35,126,0.07) 100%),
    url(image/schoololpc.jpg) center/cover no-repeat;
  filter: brightness(0.92) saturate(0.7);
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(220,225,235,0.55);
  z-index: 1;
}

/* ── WRAPPER ─────────────────────────────────────────────── */
.wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* ── CARD ────────────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(820px, 95vw);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.1);
  animation: rise 0.6s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── LEFT PANEL ──────────────────────────────────────────── */
.panel-left {
  width: 55%;
  position: relative;
  overflow: hidden;
}

.panel-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-left .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,14,46,0.75) 0%, rgba(26,35,126,0.3) 60%, transparent 100%);
}

/* ── LOGO AREA (on image) ────────────────────────────────── */
.logo-area {
  position: absolute;
  top: 22px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.logo-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-circle img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.logo-text { color: #fff; line-height: 1.2; }

.logo-text .name {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  max-width: 160px;
  line-height: 1.25;
}

.logo-text .sub {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 300;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  opacity: 0.9;
}

/* ── RIGHT PANEL ─────────────────────────────────────────── */
.panel-right {
  width: 45%;
  background: #fff;
  padding: 46px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── PORTAL TITLE ────────────────────────────────────────── */
.portal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.portal-tagline {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: #999;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

/* ── SIGN IN LABEL ───────────────────────────────────────── */
.sign-in-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}

/* ── INPUTS ──────────────────────────────────────────────── */
.input-group {
  position: relative;
  margin-bottom: 14px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.input-group input::placeholder { color: #aaa; }

.input-group input:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,35,126,0.12);
}

/* ── LOGIN BUTTON ────────────────────────────────────────── */
.btn-login {
  width: 100%;
  padding: 13px;
  margin-top: 6px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-login:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 16px rgba(26,35,126,0.45);
}

.btn-login:active { transform: scale(0.985); }

/* ── LINKS ROW ───────────────────────────────────────────── */
.links-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
}

.links-row a {
  color: var(--navy);
  text-decoration: none;
}

.links-row a:hover { text-decoration: underline; }
.links-row span { color: var(--muted); }

/* ── TERMS ───────────────────────────────────────────────── */
.terms {
  margin-top: 26px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.terms a { color: var(--navy); text-decoration: none; }
.terms a:hover { text-decoration: underline; }

/* ── BACK LINK ───────────────────────────────────────────── */
.back-link {
  position: relative;
  z-index: 2;
  text-align: left;
  margin-top: 14px;
}

.back-link a {
  font-size: 13px;
  color: var(--navy-dark);
  text-decoration: none;
}

.back-link a:hover { text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 580px) {
  .panel-left { display: none; }
  .panel-right { width: 100%; padding: 40px 28px; }
}
