/* ============================================================
   Login.css  —  Create-IT Student Login
   Original design preserved; added responsive overrides only
   ============================================================ */

/* ---- Reset (original) ---- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: url(../img/backgroundNurse.jpg) center center / cover no-repeat fixed;
  color: #000;
  font: 14px Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1 { font-size: 28px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
h1, h2, h3, h4, h5, h6 { color: #563D64; }
small { font-size: 10px; }
b, strong { font-weight: bold; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

.left        { float: left; }
.right       { float: right; }
.alignleft   { float: left;  margin-right: 15px; }
.alignright  { float: right; margin-left:  15px; }

.clearfix:after, form:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/* ---- Page wrapper — centres the card on every screen ---- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

/* ---- Login card (was .container > #content) ---- */
.container {
  margin: 0 auto;
  position: relative;
  width: 100%;
  max-width: 440px;       /* was fixed 900px wide — now fluid */
}

#content {
  background: #f9f9f9;
  background: linear-gradient(to bottom, rgba(248,248,248,1) 0%, rgba(249,249,249,1) 100%);
  box-shadow: 0 1px 0 #fff inset;
  border: 1px solid #c4c6ca;
  margin: 0 auto;
  padding: 25px 0 0;
  position: relative;
  text-align: center;
  text-shadow: 0 1px 0 #fff;
  width: 100%;            /* was fixed 400px — now inherits max-width from .container */
  border-radius: 6px;     /* slight rounding so it looks better on mobile */
}

/* Stacked paper-shadow effect */
#content:after,
#content:before {
  background: #f9f9f9;
  background: linear-gradient(to bottom, rgba(248,248,248,1) 0%, rgba(249,249,249,1) 100%);
  border: 1px solid #c4c6ca;
  content: "";
  display: block;
  height: 100%;
  left: -1px;
  position: absolute;
  width: 100%;
}
#content:after  { transform: rotate( 2deg); top: 0; z-index: -1; }
#content:before { transform: rotate(-3deg); top: 0; z-index: -2; }

/* Heading with decorative side lines */
#content h1 {
  color: #7E7E7E;
  font: bold 25px Helvetica, Arial, sans-serif;
  letter-spacing: -0.05em;
  line-height: 20px;
  margin: 10px 0 30px;
  position: relative;
}
#content h1:before,
#content h1:after {
  content: "";
  height: 1px;
  position: absolute;
  top: 10px;
  width: 20%;
}
#content h1:after  { background: linear-gradient(to right, rgba(126,126,126,1) 0%, rgba(255,255,255,1) 100%); right: 0; }
#content h1:before { background: linear-gradient(to left,  rgba(126,126,126,1) 0%, rgba(255,255,255,1) 100%); left:  0; }

/* ---- Form elements ---- */
#content form {
  margin: 0 20px;
  position: relative;
}

#content form input[type="text"],
#content form input[type="password"] {
  border-radius: 3px;
  box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0,0,0,0.08) inset;
  transition: all 0.5s ease;
  background: #eae7e7 url(img/8bcLQqF.png) no-repeat;
  border: 1px solid #c8c8c8;
  color: #777;
  font: 13px Helvetica, Arial, sans-serif;
  margin: 0 0 10px;
  padding: 15px 10px 15px 40px;
  width: 100%;            was implicit — now explicit so it never overflows
}

#content form input[type="text"]:focus,
#content form input[type="password"]:focus {
  box-shadow: 0 0 2px #ed1c24 inset;
  background-color: #fff;
  border: 1px solid #ed1c24;
  outline: none;
}

#username { background-position: 10px  10px !important; }
#password { background-position: 10px -53px !important; }

/* Submit button */
#content form input[type="submit"] {
  background: linear-gradient(to bottom, rgba(254,231,154,1) 0%, rgba(254,193,81,1) 100%);
  border-radius: 30px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
  border: 1px solid #D69E31;
  color: #85592e;
  cursor: pointer;
  float: left;
  font: bold 15px Helvetica, Arial, sans-serif;
  height: 44px;           /* taller = easier to tap on mobile (was 35px) */
  margin: 20px 0 35px 0;  /* full-width on small screens */
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  width: 100%;            /* full-width button on mobile */
  -webkit-appearance: none;
  appearance: none;
}

#content form input[type="submit"]:hover {
  background: linear-gradient(to bottom, rgba(254,193,81,1) 0%, rgba(254,231,154,1) 100%);
}

/* On wider screens restore the original narrow centered button */
@media (min-width: 480px) {
  #content form input[type="submit"] {
    width: 120px;
    margin: 20px 0 35px 15px;
    float: left;
  }
}

/* Footer strip */
.button {
  background: linear-gradient(to bottom, rgba(247,249,250,1) 0%, rgba(240,240,240,1) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
  border-radius: 0 0 5px 5px;
  border-top: 1px solid #CFD5D9;
  padding: 15px 0;
}
.button a {
  color: #7E7E7E;
  font-size: 17px;
  padding: 2px 0 2px 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.button a:hover { color: #00aeef; }

/* Alert */
.alert-danger {
  color: #a94442;
  background-color: #ebcf94;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(212,111,111,0.3);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  width: auto;            /* was 20% — unusable on mobile */
  max-width: 100%;
}

/* ---- Show/hide password toggle ---- */
.password-wrapper {
  position: relative;
  width: 100%;
}
.password-wrapper input {
  text-align: center;
  padding-right: 40px;
  padding-left: 40px;
  width: 100%;
  
}
.toggle-password {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-60%);   /* account for the 10px bottom margin */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
  padding: 0;
  line-height: 1;
}
.toggle-password:hover { opacity: 1; }

/* ---- Logo row ---- */
.logo-row {
  display: flex;
  justify-content: flex-start;
  padding: 0 20px 10px;
}
.logo-row img {
  height: 40px;
  width: auto;
}

/* ---- School logo ---- */
.school-logo-row {
  display: flex;
  justify-content: center;
  padding: 10px 0 5px;
}
.school-logo-row img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

/* ---- Subtitle (מידע לסטודנט/ית) ---- */
.login-subtitle {
  font-size: 20px;
  color: #29bf9f;
  display: block;
  margin-top: 6px;
  line-height: 1.3;
}
