@charset "utf-8";
:root {
  --card-w: 520px;
  --card-h: 620px;
  --accent: #1E3A8A;
  --blue: #2563EB;
  --light-blue: #60A5FA;
  --cream: #EFF6FF;
  --dark-blue: #1E40AF;
  --text: #2c2c2c;
  --secondary-text: #1E3A8A;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #DBEAFE;
  background-attachment: fixed;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: url("../img/bghehe.jpg");
  background-size: cover;
  background-position: center;
  height: 100%;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

body.blur-bg::before {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 6rem 2rem 4rem;
  gap: 4rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.card {
  width: var(--card-w);
  max-width: 100%;
  height: var(--card-h);
  position: relative;
  transform-style: preserve-3d;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  perspective: 1200px;
}

.card:hover,
.card:focus,
.card:active {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(122, 143, 166, 0.3);
}

.card.flipped {
  transform: rotateY(180deg);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.flipped:hover,
.card.flipped:focus,
.card.flipped:active {
  transform: rotateY(180deg) translateY(-6px);
  box-shadow: 0 20px 50px rgba(122, 143, 166, 0.3);
}

.side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.25), inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 3rem 3.5rem;
  box-sizing: border-box;
  overflow: hidden;
  color: #2c2c2c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 4px solid #2563EB;
}

.side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(96, 165, 250, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

.card-icon {
  font-size: 3.5rem;
  color: #2563EB;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.card-icon .material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.side h2 {
  text-align: center;
  margin-bottom: 1.2rem;
  color: #2c2c2c;
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
  letter-spacing: 0.3px;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
  width: 100%;
  padding: 1rem 1.2rem;
  margin: 1rem auto 1.2rem auto;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #FFFFFF;
  color: #2c2c2c;
  outline: none;
  display: block;
  position: relative;
  z-index: 2;
  border: 3px solid #60A5FA;
}

form input::placeholder {
  color: #93C5FD;
  font-size: 1rem;
  font-weight: 600;
}

form input:focus {
  background: #FFFFFF;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
  border-color: #2563EB;
}

button {
  width: 100%;
  padding: 1.3rem 1.5rem;
  margin: 1.2rem auto;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

p {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: #2c2c2c;
  position: relative;
  z-index: 2;
  text-align: center;
  font-weight: 600;
}

p a {
  color: #2563EB;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

p a:hover {
  color: #1E40AF;
  text-decoration: underline;
}

.forgot-link {
  color: #3B82F6 !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.forgot-link:hover {
  color: #2563EB !important;
}

.error, .success {
  text-align: center;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
  border: 2px solid;
}

.error {
  background: rgba(200, 50, 50, 0.15);
  color: #c83232;
  border-color: #c83232;
}

.success {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
  border-color: #2e7d32;
}

.register {
  transform: rotateY(180deg);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-content {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(15px);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  color: #2c2c2c;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.3);
  border: 4px solid #2563EB;
}

.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #2c2c2c;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.modal-content p {
  font-size: 1.1rem;
  margin: 1rem 0;
  color: #1E40AF;
  font-weight: 700;
}

.modal-content input[type="email"],
.modal-content input[type="text"] {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  background: #FFFFFF;
  color: #2c2c2c;
  border: 3px solid #60A5FA;
  outline: none;
  margin: 1rem 0;
}

.modal-content input[type="email"]:focus,
.modal-content input[type="text"]:focus {
  background: #FFFFFF;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
  border-color: #2563EB;
}

.modal-content button {
  margin-top: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border: none;
  font-weight: 800;
  cursor: pointer;
  font-size: 1.2rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content button:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.intro {
  flex: 1.8;
  margin-top: 0;
  color: #fff;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  position: relative;
}

.intro::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(30deg, rgba(37, 99, 235, 0.15) 0%, rgba(30, 58, 138, 0.1) 50%, rgba(37, 99, 235, 0) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 70%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 70%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.intro h1 {
  font-size: 5.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.intro .tagline {
  font-size: 2.2rem;
  color: #EFF6FF;
  margin-bottom: 2rem;
  font-weight: 800;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}

.intro .desc {
  font-size: 1.55rem;
  line-height: 1.8;
  color: #F0F9FF;
  max-width: 850px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .wrapper {
    justify-content: center;
    padding: 2rem 2rem;
    gap: 2rem;
    flex-direction: column-reverse;
  }

  .intro {
    text-align: center;
    margin-top: 0;
  }

  .intro h1 {
    font-size: 3.5rem;
  }

  .intro .tagline {
    font-size: 1.8rem;
  }

  .intro .desc {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --card-w: 85%;
    --card-h: auto;
  }

  .wrapper {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .card {
    width: 90%;
  }

  .side {
    padding: 2rem 2rem;
    min-height: 450px;
  }

  form input[type="text"],
  form input[type="password"],
  form input[type="email"] {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    margin: 0.8rem auto 1rem auto;
  }

  button {
    padding: 1.1rem 1.3rem;
    font-size: 1.1rem;
    margin: 1rem auto;
  }

  .side h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  p {
    font-size: 0.95rem;
    margin-top: 1rem;
  }

  .intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .intro .tagline {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .intro .desc {
    font-size: 1rem;
  }
}

