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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
  min-height: 100vh;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

:root {
  --brand-blue: #ffffff;
}

/* Slim top bar */
.login-topbar {
  background: var(--brand-blue);
  padding: 10px 0;
}

/* Align logo with the box */
.login-topbar-inner {
  max-width: 420px;      /* match wrapper width */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.login-logo {
  height: 38px;
  width: auto;
  display: block;
}

.login-page {
  flex: 1;                 /* fills the remaining height */
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  padding: 30px 20px;       /* keeps it nice on small screens */
}

.wrapper {
    width: 420px;
    max-width: 95vw;
    background: #ffffff;
    color: #000000;
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 400px) {
  .wrapper {
    padding: 24px 20px;
  }
}

.wrapper h1 {
    font-size: 36px;
    text-align: center;
}

.wrapper .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid #6AB8FF;
    border-radius: 40px;
    font-size: 16px;
    color: #000000;
    padding: 20px 45px 20px 20px;
}

.input-box input::placeholder {
    color: #000000;
}

.input-box ion-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #000000
}

/* Password toggle icon (eye) */
.input-box .password-toggle {
    right: 50px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px !important;
}

.input-box .password-toggle:hover {
    color: #6AB8FF;
}

/* Password toggle icon (eye) - positioned to the left of the lock */
.password-toggle {
    right: 50px !important;
    cursor: pointer;
    z-index: 10;
    font-size: 18px !important;
}

.password-toggle:hover {
    color: #6AB8FF;
}

.wrapper .remember-forget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14.5px;
    margin: -15px 0 15px;
    gap: 8px;
    flex-wrap: nowrap;
}

.remember-forget label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 4px;
}

.remember-forget a {
    white-space: nowrap;
}

.remember-forget label input {
    accent-color: #000000;
    margin-right: 3px;
}

.remember-forget a {
    color: #000000;
    text-decoration: none;
}

.remember-forget a:hover {
    text-decoration: underline;
}

.wrapper .btn {
    width: 100%;
    height: 45px;
    background: #6AB8FF;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #000000;
    font-weight: 600;
}

.btn:hover {
  filter: brightness(0.95);
}

.wrapper .register-link {
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}

.register-link p a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.register-link p a:hover {
    text-decoration: underline;
}

/* --- Shared status messages (Forgot/Reset) --- */
.status-msg{
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  display: none;
}

.status-msg.success{ color: #1f7a3f; }
.status-msg.error{ color: #b42318; }
.status-msg.info{ color: #1d4ed8; }

.btn-loading{
  opacity: 0.85;
  cursor: not-allowed;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #000000;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000000;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
