@import "./modal.css";
@import "./form.css";

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-family: "Yekan Bakh FaNum", system-ui, sans-serif;
}
p,
h1,
h2,
h3 {
  margin: 0px;
}
button {
  user-select: none;
}

button:disabled {
  cursor: not-allowed;
}

.hero-wrapper {
  margin-top: 80px;
  position: relative;
  height: 598px;
  background: url("../images/enter-classroom-bg.svg") center center no-repeat;
  background-size: cover;
}
.hero {
  max-width: 80%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-content {
  color: #fff;
  flex: 1;
  display: grid;
  place-items: center;
}

.hero-content h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}
/* LEFT CARD */
.login-card {
  flex: 1;
  width: 100%;
  max-width: 590px;
  background: #fff;
  margin-top: 110px;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.login-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.login-card-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0px;
}

.card-warning {
  font-size: 14px;
  color: #ea2b2b;
  margin: 0px;
}

.tabs {
  display: flex;
  background: #eef1ff;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 32px;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  color: #666;
}

.tab a {
  display: block;
  width: 100%;
  height: 100%;
}

.tab.active {
  background: #2f2687;
  color: #fff;
  font-weight: 700;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-hint {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #212121;
}

.submit-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: #3557e0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.submit-btn:disabled {
  background: #b8b8b8;
  color: #fff;
  cursor: not-allowed;
}

.terms {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  text-align: center;
}

.terms a {
  color: #3557e0;
  text-decoration: none;
}

.watch-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
}

.modal.auth .modal-panel {
  max-width: 520px;
}

.enter-class-alert-box {
  background-color: #fffaeb;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 4px;
  padding: 8px 16px;
  color: #212121;
}

.enter-class-alert-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-block: 16px;
}

.enter-class-alert-box p {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.enter-class-alert-box p:first-of-type {
  margin-bottom: 12px;
}

.enter-class-alert-wrapper .btn-group {
  padding: 0px;
  gap: 8px;
}

.enter-class-alert-wrapper .btn-group .button-round-pr {
  flex: 4;
}

.enter-class-alert-wrapper .btn-group .button-round-pr-outline {
  flex: 2;
}

.info-box {
  display: flex;
  align-items: start;
  gap: 4px;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
}

.info-box .icon {
  display: grid;
  place-items: center;
}

.info-box.success {
  background-color: #ecfdf3;
  color: #039855;
}

.info-box a {
  text-decoration: underline;
  color: inherit;
  font-weight: 600;
}

#complete-info-modal .modal-panel {
  max-width: 611px;
}

#otp-modal .otp-wrapper {
  margin-bottom: 48px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #039855;
  font-size: 14px;
  font-weight: 500;
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: #039855;
  border-radius: 50%;
  position: relative;
}

/* Recording-style pulse */
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgba(0, 166, 81, 0.4);
  animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    max-width: 100%;
    padding-inline: 24px;
  }
  .hero-content {
    margin-top: 80px;
  }
  .hero-content h1 {
    font-size: 24px;
  }
  .login-card {
    margin-top: 34px;
    padding-inline: 16px;
  }
  .watch-btn {
    font-size: 16px;
  }
  .login-card-header {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .login-card-header h2 {
    font-size: 20px;
  }
  .modal.auth .modal-panel {
    max-width: 100%;
  }
  .enter-class-alert-wrapper .btn-group {
    margin-top: 0px;
    gap: 0px;
  }

  .info-box p {
    font-size: 14px;
  }
}

.error {
  color: #e50a0a
}
