/* Login Page Styles - LinkedIn Talent Theme */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.login-nav {
  padding: 16px 24px;
}

.login-nav-inner {
  max-width: 1128px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.login-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}

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

/* Explicit full-width and equal height for both inputs */
.login-card input[type=email],
.login-card input[type=password],
.login-card input[type=text] {
  width: 100% !important;
  height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #8c8c8c;
  border-radius: 4px;
  font: inherit;
  background: var(--card);
  color: var(--text);
  box-sizing: border-box;
  display: block;
  outline: none;
  transition: border-color 0.15s, outline 0.15s;
}

.login-card input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap input {
  padding-right: 64px !important;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  z-index: 2;
  border-radius: 4px;
}

.password-toggle:hover {
  text-decoration: underline;
  background: var(--blue-l);
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}

.checkbox-label input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 28px;
}

/* Error message styling */
.err-msg {
  color: var(--err);
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.has-err .err-msg {
  display: block;
}

.has-err input {
  border-color: var(--err) !important;
}

.login-footer-text {
  text-align: center;
  font-size: 14px;
  margin-top: 24px;
  color: var(--muted);
}

.login-footer-text a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.login-footer-text a:hover {
  text-decoration: underline;
}
