@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');

::-ms-reveal {
  display: none;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
}

.container {
  display: flex;
  min-height: 100vh;
}

.left-panel {
  width: 380px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  position: relative;
}

.right-panel {
  flex: 1;
  background-image: url("../img/bg.svg");
  background-repeat: repeat;
  background-size: auto;
}

@media (max-width: 600px) {
  .right-panel {
    display: none;
  }

  .left-panel {
    width: 100vw;
    box-shadow: none;
    padding: 1rem;
  }

  .container {
    justify-content: center;
  }
}

.eduten-logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.eduten-logo {
  width: 140px;
  height: auto;
}

/* Rounded corners for all components */

.login-box,
.btn,
.social-btn,
.footer-links a,
.logo {
  border-radius: 8px;
  max-width: 340px;
  width: 100%;
  box-sizing: border-box;
}

/* Form group spacing and label positioning */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
  color: #333;
}

.form-group input {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid #a8a8a8;
  background: #ebeaea;
  color: #222;
  width: 100%;
  box-sizing: border-box;
}

/* Keep input field border color the same on focus/active as default (gray, not black) */
.form-group input:focus,
.form-group input:active {
  border-color: #a8a8a8;
  outline: none;
}

/* Add spacing between major components in login box */
.login-box>* {
  margin-bottom: 1.5rem;
}

.forgot-password-link {
  text-align: center;
  margin-top: 1rem;
}

.forgot-password-link a {
  text-decoration: none;
  color: #5568be;
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.2s;
}

.forgot-password-link a:hover {
  color: #4156b4;
}

.login-box>*:last-child {
  margin-bottom: 0;
}

.btn[type="submit"],
.btn.primary {
  background: #02a795;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(31, 207, 207, 0.08);
  transition: background 0.2s;
  max-width: 340px;
  width: 100%;
}

.btn[type="submit"]:hover,
.btn.primary:hover {
  background: #02af9b;
}

/* Social login buttons */
.social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  color: #333;
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: background 0.2s, border 0.2s;
  max-width: 340px;
  width: 100%;
}

.social-btn:hover {
  background: #f5f4f4;
}

.social-btn.microsoft::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url('../img/microsoft-logo.svg') no-repeat center/contain;
}

.social-btn.google::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url('../img/google-logo.svg') no-repeat center/contain;
}

.social-btn .social-text {
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

/* Footer small links styling */
.footer-small-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.5rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
}

.footer-small-links a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-small-links a:hover {
  text-decoration: underline;
}

.footer-small-links span {
  color: #ccc;
  font-size: 1rem;
}

.kc-feedback-text .error {
  color: #d9534f;
}

.logout-other-sessions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  align-self: flex-start;
}

.logout-other-sessions input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.logout-other-sessions {
  flex-wrap: nowrap;
}

.logout-other-sessions {
  max-width: none;
}

.trust-device {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 1rem;
  cursor: pointer;
}

.trust-device input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input[type="password"] {
  padding-right: 2.5em;
}

.password-input-wrapper button {
  display: none;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}