
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #888888;
  transition: margin-left 0.4s ease; /* Voegt een animatie toe */
}
header{
  text-align: center;
  padding: 10px;
  background: #333;
  color: white;
}
.logo{
  height: 60px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  max-height: 10vh;
  width: auto;
  display: block;
  margin-left: auto;
  margin-right: 20px;
  object-fit: contain;

}

.homePageImage{
  width: 100%;
  height: 60%;
}

/* Hamburger knop */
.burger-icon {
  font-size: 30px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  left: 15px;
  color: white;
  background: #333;
  padding: 10px 15px;
  border-radius: 5px;
  z-index: 100;
}

/* Zijmenu */
.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #333;
  overflow-x: hidden;
  transition: 0.4s;
  padding-top: 60px;
}

.side-menu ul {
  list-style: none;
  padding: 0;
}

.side-menu ul li {
  padding: 15px;
  border-bottom: 1px solid #444;
}

.side-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: flex;
}

.side-menu ul li:hover {
  background: #444;
}


.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 36px;
  cursor: pointer;
  color: white;
}

/* Wanneer het menu open is, schuift de content op */
.menu-open {
  margin-left: 250px;
}

footer {
  font-size: 14px;
  text-align: center;
  padding: 10px 5px;
  background: #333;
  color: white;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-container div {
  flex: 1;
  min-width: 250px;
  margin-bottom: 15px;
}

.footer-container h3 {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 2px solid #bd0a0a;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-container p {
  margin: 5px 0;
}

.footer-container a {
  color: #bd0a0a;
  text-decoration: none;
}

.footer-container a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 10px;
  background: #222;
  font-size: 12px;
  margin-top: 10px;
}




/* Home */


.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
}

.hero-text h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 20px;
}

.about-homepage {
  background: rgba(255, 255, 255, 0.95); /* licht transparant wit */
  backdrop-filter: blur(5px); /* subtiele blur als je over een achtergrondafbeelding zit */
  padding: 60px 30px;
  text-align: center;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-homepage h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.about-homepage p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

.new-arrivals{
  max-width:1100px;
  margin:40px auto;
  padding:32px 40px;
  background:#fff;            /* witte kaart */
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.07);
  text-align:center;
}
.new-arrivals h2{
  font-size:26px;
  margin:0 0 24px;
  color:#111;
}

/* Nieuw binnen */
.arrivals-grid{
  background-color: #ffffff;
  display:grid;
  grid-template-columns:repeat(3,1fr); /* precies 3 */
  gap:24px;
  justify-items:center;
}

/* hergebruik dezelfde tegel-stijl als .car-card */
.arrival-card{
  background:#fff;
  width:280px;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,.08);
  overflow:hidden;
  text-align:center;
  transition:transform .25s,box-shadow .25s;
  cursor:pointer;
}
.arrival-card:hover{
  transform:translateY(-6px);
  box-shadow:0 8px 16px rgba(0,0,0,.12);
}
.arrival-card img{
  width:100%; height:180px; object-fit:cover;
}
.arrival-card h3{ font-size:18px; margin:10px 0 4px; }
.arrival-card p{  font-size:15px; margin:4px 0; }
.arrival-card .price{ color:#2ecc71; font-weight:700; margin:10px 0 14px; }

/* mobiele fallback: 2 kolommen bij smal scherm */

@media(max-width:768px){
  .arrivals-grid{ grid-template-columns:repeat( auto-fill,minmax(220px,1fr) ); }
}



.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

/* Slides */
.slide {
  display: none;
  position: relative;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}


.text {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 15px;
  font-size: 24px;
  border-radius: 5px;
}

.text>h2 {
  text-align: center;
}



.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  font-weight: bold;
  padding: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.fade {
  animation: fadeEffect 1.5s ease-in-out;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* About */

.hero-banner{
  background:#222;                  /* donkergrijs/zwart */
  color:#fff;
  text-align:center;
  padding:60px 20px 70px;
}
.hero-banner h1{
  font-size:38px;
  margin-bottom:12px;
}
.hero-banner p{
  font-size:18px;
  opacity:.9;
}
.about-home{
  background:#fafafa;
  padding:60px 30px;
  max-width:1100px;
  margin:40px auto;
  border-radius:12px;
  box-shadow:0 6px 25px rgba(0,0,0,.08);
  text-align:center;
}
.about-home h2{
  font-size:32px;
  margin-bottom:20px;
  color:#111;
}
.about-home p{
  font-size:18px;
  line-height:1.6;
  color:#444;
  max-width:800px;
  margin:0 auto 40px;
}

/* Grid voor de drie diensten  */
.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}
.services-section{
  padding:40px 20px 60px;
  max-width:1200px;
  margin:0 auto;
}

.section-title{
  text-align:center;
  font-size:32px;
  margin-bottom:32px;
  color:#111;
}

/* zelfde grid-opzet als .car-grid */
.service-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:25px;
}

/* kaart – afgeleid van .car-card */
.service-card{
  background:#fff;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  text-align:center;
  padding:30px 24px 34px;
  transition:transform .25s;
}
.service-card:hover{ transform:translateY(-6px); }

/* icoontje bovenaan */
.hero-icon{
  font-size:46px;
  margin-bottom:12px;
}

/* titels en tekst */
.service-card h3{
  font-size:20px;
  margin-bottom:12px;
  color:#111;
}

.service-card p{
  font-size:16px;
  line-height:1.6;
  color:#444;
}

/* AUTO AANBIEDEN / INKOOP */

.sell-your-car{
  background:#888888;
  padding:50px 28px 60px;
  margin-top:60px;
}
.sell-your-car h2{
  text-align:center;
  font-size:28px;
  margin-bottom:18px;
}
.sell-your-car p{
  text-align:center;
  max-width:750px;
  margin:0 auto 32px;
  color:#333;
}

/* formulier */
#sellForm{
  max-width:600px;
  margin:0 auto;
  background:#fff;
  border-radius:10px;
  padding:30px 24px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.form-sell-group{
  display:flex;
  flex-direction:column;
  margin-bottom:18px;
}
.form-sell-group label{
  font-weight:600;
  margin-bottom:6px;
}
.form-sell-group input{
  padding:10px 12px;
  font-size:16px;
  border:1px solid #ccc;
  border-radius:6px;
}
button[type=submit]{
  display:block;
  width:100%;
  background:#e74c3c;
  color:#fff;
  font-size:16px;
  font-weight:600;
  padding:12px 0;
  border:none;
  border-radius:6px;
  cursor:pointer;
  transition:background .25s;
}
button[type=submit]:hover{background:#c0392b;}

/* formulier feedback */
#sellMsg{margin-top:14px;color:#2ecc71;font-weight:600}

/* ----------  RESPONSIVE ---------- */
@media (max-width:600px){
  .about-home{padding:40px 16px;}
  #sellForm{padding:24px 18px;}
}


.mox-theme{
    
}

/* ----Car-detail---- */
.car-detail{
  max-width:900px;
  margin:40px auto;
  background:#fff;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.07);
  padding:32px 40px;
}
.car-detail h1{
  font-size:28px;
  margin:0 0 24px;
  text-align:center;
  color:#111;
}

/* ----------  GALERIJ  ---------- */
.gallery{
  position:relative;
  display:flex;
  overflow-x:auto;
  gap:16px;
  scroll-snap-type:x mandatory;
  margin-bottom:28px;
}
.gallery img{
  width:100%;
  max-width:280px;
  height:180px;
  object-fit:cover;
  border-radius:8px;
  cursor:pointer;
  scroll-snap-align:center;
  transition:transform .25s;
}
.gallery img:hover{ transform:scale(1.04); }
.gallery img.active{
  outline:4px solid #c0392b;
}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.8);
  display:flex;
  justify-content:center;
  align-items:center;
  visibility:hidden;
  opacity:0;
  transition:opacity .25s;
  z-index:999;
}
.overlay.open{
  visibility:visible;
  opacity:1;
}
.overlay img{
  max-width:90%;
  max-height:90%;
  border-radius:8px;
}
.overlay .close{
  position:absolute;
  top:20px; right:30px;
  font-size:38px;
  color:#fff;
  cursor:pointer;
}
.overlay .arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:46px;
  color:#fff;
  cursor:pointer;
  user-select:none;
  padding:8px 14px;
  border-radius:50%;
  background:rgba(0,0,0,.4);
}
.overlay .prev{ left:30px; }
.overlay .next{ right:30px; }
.overlay .arrow:hover{ background:rgba(0,0,0,.7); }

/* ----------  SPECIFICATIES  ---------- */
.specs{
  list-style:none;
  padding:0;
  margin:0 0 32px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px 24px;
}
.specs li{
  font-size:16px;
  color:#333;
}
.specs li strong{ font-weight:600; }

/* ----------  BACK-BUTTON  ---------- */
.back-btn{
  display:block;
  margin:0 auto;
  padding:10px 24px;
  background:#c0392b;
  color:#fff;
  border:none;
  border-radius:6px;
  font-size:16px;
  cursor:pointer;
  transition:background .2s,transform .2s;
}
.back-btn:hover{
  background:#962b21;
  transform:translateY(-2px);
}

.back-btn-add-car{
  position: fixed;  /* ✅ Fixed in plaats van absolute */
  top: 80px;        /* ✅ Onder de header */
  left: 20px;
  padding: 10px 20px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;    /* ✅ Hoge z-index */
}

.back-btn-add-car:hover {
  background: #962b21;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* cars */
div .car-list {
  padding: 20px;
  background: white;
  margin: 20px;
  border-radius: 5px;
}
div .filter-container{
  padding: 20px;
  background: white;
  margin: 20px;
  border-radius: 5px;
}

.carsHeader {
  text-align: center;
  padding: 40px;
  background: #222;
  color: white;
}

.carsHeader h1 {
  margin: 0;
}

/* Zoekbalk */
.filter-container {
  text-align: center;
  margin: 20px;
}

#searchInput {
  width: 80%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.thumb-row {
  display: flex;
  gap: 4px;
  padding: 8px 12px 12px;
}

.thumb-row img {
  width: 30%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}

/* Auto Container */
.filter-container{
  max-width:100%;
  margin:20px auto 0;
  padding:16px 20px;
  background:#f5f5f5;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}
.filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin-top:12px;
}
.filter-row input,
.filter-row select{
  padding:8px 10px;
  font-size:15px;
  border:1px solid #ccc;
  border-radius:6px;
}

/* ─────────────  GRID & CARD  ───────────── */
.car-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:24px;
  justify-items:center;
  margin:25px auto;
  max-width:1000px;
}

/* één bron-kaart-style voor alle kaarten */
.car-card{
  background:#fff;
  width:300px;
  border-radius:10px;
  box-shadow:0 4px 8px rgba(0,0,0,.08);
  overflow:hidden;
  text-align:center;
  transition:transform .25s, box-shadow .25s;
  cursor:pointer;
}
.car-card:hover{
  transform:translateY(-6px);
  box-shadow:0 8px 16px rgba(0,0,0,.12);
}
.car-card img{
  width:100%; height:200px; object-fit:cover;
}
.car-card h3{ font-size:18px; margin:10px 0 4px; }
.car-card p{  font-size:15px; margin:4px 0; }
.car-card .price{
  font-size:18px; font-weight:700; color:#2ecc71; margin:10px 0 14px;
}

/* ─────────────  PAGER  ───────────── */
.pager{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:20px 0 40px;
}
.pager button{
  padding:6px 14px;
  border:none;
  background:#444;
  color:#fff;
  border-radius:4px;
  cursor:pointer;
  transition:background .2s;
}
.pager button:hover:not([disabled]){
  background:#222;
}
.pager button[disabled]{ opacity:.4; cursor:default; }

/* ─────────────  RESPONSIVE  ───────────── */
@media(max-width:768px){
  .car-grid{ grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
}


/*Add-cars*/
:root{
  --clr-bg:     #f7f9fc;
  --clr-card:   #ffffff;
  --clr-primary:#c0392b;
  --clr-primary-dark:#962b21;
  --clr-text:   #1e1e1e;

  --radius:     10px;
  --shadow:     0 6px 20px rgba(0,0,0,.07);
  --transition: .25s cubic-bezier(.4,.2,.2,1);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
/* Algemene styling voor het formulier */
.add-car-form{
  max-width: 950px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--clr-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------   TITEL   ------------ */
#formTitle{
  font-size: clamp(1.5rem,4vw,2rem);
  font-weight: 600;
  text-align:center;
  color: var(--clr-primary);
  margin: 0 0 2rem 0;
  position: relative;
}
#formTitle::after{
  content:"";
  display:block;
  width:4rem; height:3px;
  background: var(--clr-primary);
  margin:.75rem auto 0;
  border-radius:3px;
}

/* ------------   FIELDSETS   ------------ */
form fieldset{
  border:1px solid #e5e8ec;
  border-radius:var(--radius);
  padding:1.5rem 1.75rem 1.25rem;
  margin-bottom:2rem;
  background: var(--clr-bg);
}
form legend{
  padding:0 .5rem;
  font-weight:600;
  color:var(--clr-text);
}

/* ------------   FORM‑GRID   ------------ */
.form-add-group{                       /* wrapper rondom label+input             */
  display:grid;
  gap:.6rem .9rem;
  margin-bottom:1.25rem;
}
@media(min-width:768px){
  .form-add-group{
    grid-template-columns: 200px 1fr;   /* label links, veld rechts          */
    align-items:center;
  }
}

/* ------------   LABELS & INPUTS   ------------ */
label{
  font-weight:500;
  color:var(--clr-text);
}
.form-add-group input,
.form-add-group textarea,
.form-add-group select{
  width:90%;
  padding:.7rem .9rem;
  font-size:1rem;
  border:1px solid #d0d5db;
  border-radius:6px;
  background:#fff;
  transition:box-shadow var(--transition), border-color var(--transition);
}
.form-add-group input:focus,
.form-add-group textarea:focus,
.form-add-group select:focus{
  outline:none;
  border-color: var(--clr-primary);
  box-shadow:0 0 0 3px rgba(192,57,43,.2);
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  max-height: 180px;
  overflow: auto;
}

/* Algemene thumbnail-styling */
.preview-container img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  cursor: grab;
  transition: transform .2s, border-color .2s;
}

/* Hover-effect */
.preview-container img:hover {
  transform: scale(1.05);
}

/* De “hoofdafbeelding” herken je zo */
.preview-container img.primary {
  border: 3px solid #007bff;
}


/* textarea */
textarea{resize:vertical; min-height:120px;}

/* ------------   FILE INPUT (basis)   ------------ */
input[type=file]{
  font-size:.95rem;
}

/* ------------   WAARSCHUWING TEKST   ------------ */
.warn{
  display:block;
  margin-top:.4rem;
  font-size:.9rem;
  color:var(--clr-primary);
}

/* ------------   SUBMIT BUTTON   ------------ */
button[type=submit]{
  background: var(--clr-primary);
  color:#fff;
  font-weight:600;
  padding:.9rem 2.5rem;
  border:none;
  border-radius:var(--radius);
  cursor:pointer;
  margin:0 auto;
  display:block;
  transition:background var(--transition), transform var(--transition);
}
button[type=submit]:hover{
  background: var(--clr-primary-dark);
  transform:translateY(-2px);
}
button[type=submit]:active{
  transform:translateY(0);
}

/* ------------   ALGEMENE RESPONSIVE FIXES   ------------ */
@media(max-width:767px){
  form fieldset{ padding:1.25rem; }
}


/* Contact*/
.contactHeader{
  text-align: center;
  padding: 40px;
  background: #222;
  color: white;
}
.contactH1{
  margin: 0;
}
.contact-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 40px;
  max-width: 1100px;
  margin: auto;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  border-bottom: 2px solid #bd0a0a;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  border-bottom: 2px solid #bd0a0a;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin: 10px 0 5px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 95%;
  font-size: 16px;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form button {
  margin-top: 15px;
  background: #bd0a0a;
  color: #222;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.contact-info a {
  text-decoration: none;
  color: black;
}

.contact-form button:hover {
  background: #d5081f;
}

/* Responsiviteit */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }
}

body.login-page footer {
  display: none !important;
}


/* Login form container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

section.login-page {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 40px;
  margin-top: 20px ;
  width: 100%;
  max-width: 450px;
  animation: slideUp 0.6s ease-out;
}


@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-page h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
  position: relative;
}

.login-page h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #bd0a0a;
  border-radius: 2px;
}

/* Login form styling */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #d0d5db;
  border-radius: 6px;
  background: #fff;
  transition: box-shadow 0.25s cubic-bezier(0.4, 0.2, 0.2, 1), border-color 0.25s;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: #bd0a0a;
  box-shadow: 0 0 0 3px rgba(189, 10, 10, 0.2);
}

.form-group input[type="text"]:hover,
.form-group input[type="password"]:hover {
  border-color: #bd0a0a;
}

/* Submit button */
.submit-btn {
  background: #bd0a0a;
  color: #fff;
  font-weight: 600;
  padding: 14px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.25s, transform 0.25s;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: #a00808;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(189, 10, 10, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Loading state */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Message styling */
.message {
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  margin-top: 15px;
  animation: shake 0.5s ease-in-out;
}

.message.warn {
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
}

.message.success {
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  color: #3c763d;
}

@keyframes shake {
  0%, 20%, 40%, 60%, 80% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-3px);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .login-container {
    padding: 20px 15px;
    min-height: calc(100vh - 70px);
  }

  .login-page {
    padding: 30px 20px;
  }

  .login-page h1 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .form-group input[type="text"],
  .form-group input[type="password"] {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 15px;
  }

  .submit-btn {
    padding: 16px 30px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 25px 15px;
  }
  
  .login-container {
    padding: 15px 10px;
  }
}

