@import url("../dimens/global.css");
@import url("../colours.css");

@font-face {
  font-family: "App-Medium";
  src: url("../fonts/Nunito-Medium.ttf");
}
@font-face {
  font-family: "App-Regular";
  src: url("../fonts/Nunito-Light.ttf");
}

/* Basic reset and layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: App-Regular, App-Medium ;
  background-color: var(--bg-colour-dark);
}

.container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--white);
  width: var(--log-in-container-width);
  padding: 40px 30px;
  border-radius: 16px;
  padding-left: var(--log-in-container-padding-sides);
  padding-right: var(--log-in-container-padding-sides);
  text-align: center;
}

.logo {
  height: 150px;
}

h2 {
  margin-bottom: 25px;
  font-size: 20px;
  font-family: App-Medium;
  color: var(--text-regular);
}

.input-group {
  margin-bottom: 25px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 0.5px solid var(--text-regular);
  font-size: 15px;
  outline: none;
  color: var(--text-regular);
  font-family: App-Regular;
}

.input-group input:focus {
  border-color: var(--text-small-titles);
}

.input-group.password {
  position: relative;
  margin-bottom: 16px;
}

.eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
}

/* Buttons/links: look from styles/buttons.css (.btn-link, .btn-primary);
   only layout stays here. */
.btn-link.forgot {
  display: block;
  margin: 8px 0 24px;
  margin-left: 4px;
  font-size: 14px;
  text-align: left;
}

.btn.saveButton {
  width: 80%;
  margin-bottom: 30px;
  margin-top: 20px;
}

.btn-link.create-account {
  display: block;
  margin-top: -14px;
  font-size: 15px;
}

/* ─── FORGOT PASSWORD DIALOG ─── */
.forgot-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.forgot-overlay[hidden] { display: none; }
.forgot-dialog {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: left;
}
.forgot-title {
  margin: 0 0 8px;
  font-family: App-Medium;
  font-size: 18px;
  color: var(--text-regular);
}
.forgot-desc {
  margin: 0 0 16px;
  font-family: App-Regular;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-regular);
}
.forgot-input { margin-bottom: 8px; }
.forgot-error {
  margin: 0 0 8px;
  font-family: App-Regular;
  font-size: 13px;
  color: var(--red-alert, #ca0c0c);
}
.forgot-error[hidden] { display: none; }
.forgot-dialog .btn-row { margin-top: 16px; }

@media screen and (max-width: 1200px){

}

/** FOR TABLETS*/
@media screen and (max-width: 1024px) { /* Adjust breakpoint as needed */

}

/** FOR PHONES*/
@media screen and (max-width: 768px) { /* Adjust breakpoint as needed */
  .input-group {
    margin-bottom: 14px;
  }
}