/* AdminDashboard login card — taller, translucent, flex layout */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap");

.login-stage {
  position: absolute;
  left: 26%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.login-pop {
  animation: coachPopIn 0.85s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

@keyframes coachPopIn {
  0% {
    opacity: 0;
    transform: translate3d(0, -80px, 0) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 8px, 0) scale(1.02);
  }
  80% {
    transform: translate3d(0, -4px, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.coach-box {
  margin: 0;
  position: relative;
  text-align: center;
  background-color: rgba(33, 41, 66, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9px;
  border-top: 10px solid #79a6fe;
  border-bottom: 10px solid #8BD17C;
  width: 400px;
  min-height: 620px;
  height: auto;
  padding: 56px 0 36px;
  box-shadow: 1px 1px 108.8px 19.2px rgba(25, 31, 53, 0.55);
  font-family: "Source Sans Pro", "Noto Sans SC", sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coach-box .box {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0;
  margin: 0;
}

.coach-box .brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
}

.coach-box .brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.coach-box h4 {
  font-family: inherit;
  color: #ffffff;
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.coach-box h4 span {
  color: #ffffff;
  font-weight: 700;
}

.coach-box h5 {
  font-family: inherit;
  font-size: 18px;
  color: #e8eaf0;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  font-weight: 600;
  line-height: 1.5;
}

.login-mode-tabs {
  display: flex;
  width: 320px;
  margin: 0 auto 20px;
  padding: 4px;
  gap: 0;
  box-sizing: border-box;
  background: rgba(12, 16, 28, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
}
.login-mode {
  flex: 1;
  max-width: none;
  border: 0;
  background: transparent;
  color: rgba(232, 234, 240, 0.55);
  border-radius: 9px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.login-mode.is-on {
  background: linear-gradient(180deg, #e0c36a 0%, #c9a84c 100%);
  color: #1b2a4a;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.28);
}

.coach-box .field {
  position: relative;
  width: 320px;
  margin: 0 auto 22px;
}

.coach-box input[type="text"],
.coach-box input[type="password"],
.coach-box input[type="tel"],
.coach-box input[type="number"] {
  display: block;
  margin: 0;
  background: rgba(38, 46, 73, 0.88);
  border: 0;
  border-radius: 5px;
  padding: 16px 44px 16px 14px;
  width: 100%;
  outline: none;
  color: #d6d6d6;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease-out;
  -webkit-appearance: none;
  appearance: none;
}

.coach-box input::placeholder {
  color: #565f79;
}

.coach-box input[type="text"]:focus,
.coach-box input[type="password"]:focus,
.coach-box input[type="tel"]:focus,
.coach-box input[type="number"]:focus {
  border: 1px solid #79A6FE;
}

.coach-box input:-webkit-autofill,
.coach-box input:-webkit-autofill:hover,
.coach-box input:-webkit-autofill:focus {
  -webkit-text-fill-color: #d6d6d6;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px rgba(38, 46, 73, 0.95) inset;
}

.coach-box .eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #3b476b;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 4px;
  line-height: 1;
}

.coach-box .eye-btn.active,
.coach-box .eye-btn:hover {
  color: #7f60eb;
}

.coach-box .row-opts {
  position: relative;
  width: 320px;
  margin: 6px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
}

.coach-box .row-opts a {
  color: #5c7fda;
  text-decoration: none;
  font-size: 13px;
}

.coach-box .row-opts a:hover {
  text-decoration: underline;
}

.coach-box label.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #dfdeee;
  font-size: 13px;
  user-select: none;
  margin: 0;
}

.coach-box label.remember input[type="checkbox"] {
  display: none;
}

.coach-box label.remember .check {
  height: 13px;
  width: 13px;
  border: 2px solid #464d64;
  border-radius: 2px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.coach-box label.remember input[type="checkbox"]:checked + .check:before {
  font-family: FontAwesome;
  font-size: 14px;
  content: "\f00c";
  position: absolute;
  top: -5px;
  left: -1px;
  color: #896cec;
}

.coach-box .btn1 {
  border: 0;
  background: #7f5feb;
  color: #dfdeee;
  border-radius: 100px;
  width: 340px;
  height: 52px;
  font-size: 16px;
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 44px auto 0;
  display: block;
  transition: 0.3s;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.coach-box .btn1:hover {
  background: #5d33e6;
}

.coach-box .btn1:disabled {
  opacity: 0.7;
  cursor: wait;
}

.coach-box .dnthave {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  color: #c5c8d4;
  font-size: 13px;
  text-align: center;
  margin: 22px 0 0;
  line-height: 1.5;
  pointer-events: none;
}

.coach-box .error {
  background: #ff3333;
  text-align: center;
  width: 320px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  margin: 0 auto 12px;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  color: white;
  display: none;
  font-size: 13px;
  z-index: 3;
  box-sizing: border-box;
}

.coach-box .error.show {
  display: block;
}

@media (max-width: 900px) {
  .login-stage {
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 480px) {
  .coach-box {
    width: min(400px, calc(100vw - 32px));
    min-height: 0;
    padding: 40px 0 28px;
  }
  .coach-box .field,
  .coach-box .row-opts,
  .login-mode-tabs {
    width: calc(100% - 40px);
  }
  .coach-box .field {
    margin-bottom: 14px;
  }
  .coach-box input[type="text"],
  .coach-box input[type="password"],
  .coach-box input[type="tel"],
  .coach-box input[type="number"] {
    min-height: 52px;
    padding: 15px 48px 15px 16px;
    font-size: 16px;
    border-radius: 10px;
  }
  .login-mode {
    height: 42px;
    font-size: 15px;
  }
  .coach-box .btn1 {
    width: calc(100% - 40px);
    margin-top: 28px;
    min-height: 50px;
    border-radius: 10px;
    font-size: 16px;
  }
}
