/* LOGIN.CSS — styles specific to login page */

/* additional body layout overrides for centering the login card */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}


/* LOGIN CONTAINER */
.login-shell {
  width: 100%;
  max-width: 480px;
  position: relative;
  padding-top: 50px;
}

/* Language Toggle using tb-lang class */
.tb-lang {
  position: absolute;
  top: -10px;
  right: 0;
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  transition: all .15s;
  cursor: pointer;
}


.tb-lang:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* Login Card */
.login-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

/* Brand Header */
.login-header {
  background: var(--blue);
  padding: 40px 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 91, 0, .2) 0%, transparent 70%);
  pointer-events: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  background: var(--orange);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(255, 91, 0, .3);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.3px;
  margin-bottom: 4px;
}

.brand-tagline {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Login Body */
.login-body {
  padding: 40px;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-sec);
  font-weight: 500;
  margin-bottom: 32px;
  text-align: center;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 8px;
  display: block;
}

.form-input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  background: var(--white);
  transition: all .15s;
  height: 46px;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 109, 224, .12);
}

.form-input::placeholder {
  color: var(--text-dim);
  font-size: 12px;
}

.form-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 18px;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: color .15s;
  background: none;
  border: none;
  padding: 4px;
}

.password-toggle:hover {
  color: var(--blue);
}

/* Remember & Forgot */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

.remember-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
}

.forgot-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  transition: color .15s;
}

.forgot-link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* Alert Messages */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
}

.alert.show {
  display: block;
}

.alert.error {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid var(--red);
}

.alert.success {
  background: #E8F5ED;
  color: var(--green);
  border: 1px solid var(--green);
}

/* Loading State */
.btn-primary.loading {
  pointer-events: none;
  opacity: .7;
}

.btn-primary.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: var(--white);
  border-radius: 50%;
  display: inline-block;
  animation: spin .6s linear infinite;
}

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

/* RESPONSIVE */
@media (max-width: 520px) {
  .login-header {
    padding: 32px 24px 28px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 24px;
    margin-bottom: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .login-body {
    padding: 32px 24px;
  }

  .login-title {
    font-size: 20px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tb-lang {
    top: -46px;
    padding: 6px 14px;
    font-size: 12px;
  }
}