:root {
  --primary-color: #a74e3e;
  --secondary-color: #ececec;
  --third-color: #353535;
  --accent-color: #a74e3e7b;
  --header-color: #353535;
  --header-blur: blur(16px);
  --primary-gradient: linear-gradient(
    57deg,
    var(--primary-color) 0%,
    #ab6d62 100%
  );
  --text-color: #353535;
  --name: 'The Tennis Architect';
}

body.darkmode {
  --primary-color: #a74e3e;
  --secondary-color: #353535;
  --accent-color: #a74e3e7b;
  --text-color: #ececec;
}

body {
  font-family: 'Sporty', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
}

h1 {
  color: var(--text-color);
  font-size: clamp(2rem, 3vw, 6rem);
  font-weight: 900;
  margin-bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 1rem;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.container {
  width: 100%;
  max-width: 1170px;
  overflow: hidden;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 50vw);
  height: 100vh;
}

.login-image {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  max-height: 100vh;
}

.login-container {
  display: flex;
  background-color: var(--secondary-color);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  max-height: 100vh;
  width: 100%;
}

.login-logo {
  width: 70%;
  object-fit: contain;
}

.login-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 25vw;
}

.login-form input,
.login-form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 6px;
}

.login-form input {
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.login-form button {
  background-color: #5064d4;
  color: #fff;
  width: 100%;
  border: none;
  box-sizing: border-box;
  display: flex;
  cursor: pointer;
  border-radius: 6px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

.submit-text {
  margin-block-start: 0px;
  margin-block-end: 0px;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.submit-icon {
  height: 16px;
  margin-left: 10px;
}

.login-extra {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  border-top: 2px solid #3535355a;
}

.login-spacer {
  margin-bottom: 30px;
}

.login-form button:hover {
  background-color: #0056b3;
}

.login-form button:active {
  background-color: #003d80;
}

.login-form button:focus {
  outline: none;
}

.login-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.login-link {
  color: #353535a6;
}

.remember-me {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.remember-me input {
  margin-right: 5px;
  margin-left: 0;
  width: 16px;
  height: 16px;
}

.remember-me label {
  font-size: 14px;
  color: #353535a6;
  white-space: nowrap; /* Prevents text from wrapping */
}

.input-group {
  position: relative;
  width: 100%;
}

.f-input {
  border: solid 1.5px #9e9e9e;
  background: none;
  padding: 0.6rem;
  font-size: 1rem;
  color: var(--text-color);
  transition: border 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.user-label {
  position: absolute;
  left: 15px;
  color: #9e9e9e;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.f-input:focus,
.f-input:valid {
  outline: none;
  border: 1.5px solid #0056b3;
}

.f-input:focus ~ label,
.f-input:valid ~ label {
  transform: translateY(-50%) scale(0.8);
  background-color: #ececec;
  padding: 0 0.2em;
  color: #0056b3;
}

button.password-toggle {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  padding: 0 !important;
  width: 24px !important;
  height: 24px !important;
  border: none !important;
}

button.password-toggle:hover,
button.password-toggle:focus,
button.password-toggle:active {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  border: none !important;
  outline: none !important;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
  width: 24px;
  height: 24px;
}

.password-toggle:hover {
  transform: translateY(-50%);
  box-shadow: none;
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip-text {
  visibility: hidden;
  width: max-content;
  background-color: #353535;
  color: #ececec;
  text-align: left;
  border-radius: 6px;
  padding: 6px 8px;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 95%;
  transform: translateY(-50%);
  white-space: nowrap;
  opacity: 0;
  font-size: 12px;
  transition: opacity 0.2s ease;
  line-height: 1.2;
}

.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.tooltip-link {
  color: #ececec;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.remember-me:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media (550px > width >= 310px) {
  .container {
    width: calc(100vw - 30px);
  }

  .mob-nav,
  .menu-toggle {
    display: flex;
  }

  .login-image {
    display: none;
  }

  .main-container {
    display: flex;
  }

  .login-form {
    width: 75vw;
  }
}

/*Phone specific styles*/
@media (768px > width >= 550px) {
  .container {
    width: calc(100vw - 30px);
  }

  .mob-nav,
  .menu-toggle {
    display: flex;
  }

  .login-image {
    display: none;
  }

  .main-container {
    display: flex;
  }

  .login-form {
    width: 75vw;
  }
}

/*Tablet specific styles*/
@media (1200px > width >= 768px) {
  .container {
    width: calc(100vw - 30px);
  }

  .pri-nav,
  .menu-toggle {
    display: flex;
  }

  .pri-nav-grid {
    display: none;
  }

  .login-image {
    display: none;
  }

  .main-container {
    display: flex;
  }

  .login-form {
    width: 75vw;
  }
}

/*PC specific styles*/
@media (width >= 1200px) {
  .container {
    width: calc(100vw - 30px);
  }

  .pc-nav {
    display: flex;
  }
}
