/* =========================
   Login Page Styles
   Uses Meriwa design system
   ========================= */

/* Prevent scrolling on login page */
.loginBody {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Full-screen container - uses welcome page pattern */
.loginScreen {
  height: 100vh;
  height: 100svh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bgGradient);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
}

/* Content container (phone-style centered) */
.loginContainer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Back button (top left) */
.backBtn {
  position: absolute;
  top: -40px;
  left: 20px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: var(--borderWidth) solid rgba(207,147,255,0.55);
  background: var(--accentLavenderSoft);
  color: var(--accentLavender);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.backBtn:hover {
  background: rgba(207,147,255,0.20);
}

.backBtn:active {
  transform: scale(0.95);
}

/* Logo */
.loginLogo {
  height: 40px;
  width: auto;
  margin-top: -15px;
  margin-bottom: 20px;
  opacity: 0.95;
}

/* Title */
.loginTitle {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  color: var(--title);
  margin: 15px 0 12px 0;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1.15;
}

/* Subtitle */
.loginSubtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--textSecondary);
  margin: 0 0 50px 0;
  text-align: center;
  line-height: 1.4;
}

/* Google button - uses welcome button style */
.btn-google {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: #c9a9f0;
  border: 0;
  color: #241b2b;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.30);
}

.btn-google:active {
  transform: translateY(0);
}

/* Divider */
.divider {
  width: 100%;
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: var(--textFaint);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--strokeSoft);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background: var(--bg);
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

/* Form */
.loginForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Form group */
.formGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Form label */
.formLabel {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--pillText);
  margin-left: 4px;
}

/* Form input */
.formInput {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: var(--surfaceInner);
  border: var(--borderWidth) solid var(--strokeSoft);
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.formInput::placeholder {
  color: var(--textFaint);
}

.formInput:focus {
  outline: none;
  border-color: var(--accentLavender);
  box-shadow: 0 0 0 3px var(--accentLavenderSoft);
}

/* Password wrapper for toggle icon */
.passwordWrapper {
  position: relative;
}

.passwordWrapper .formInput {
  padding-right: 50px;
}

.togglePassword {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--textFaint);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.togglePassword:hover {
  color: var(--pillText);
}

/* Submit button - uses welcome button style */
.loginSubmitBtn {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: var(--accentPrimary);
  color: var(--btnPrimaryText);
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadowSoft);
  margin-top: 6px;
}

.loginSubmitBtn:hover {
  box-shadow: 0 16px 32px rgba(0,0,0,0.30);
  transform: translateY(-2px);
}

.loginSubmitBtn:active {
  transform: translateY(0);
}

/* Sign up prompt */
.signupPrompt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--textSecondary);
  margin: 28px 0 0 0;
  text-align: center;
}

.signupLink {
  color: var(--accentLavender);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.signupLink:hover {
  color: var(--accentPrimary);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .loginContainer {
    padding: 0 24px;
  }

  .loginTitle {
    font-size: 36px;
  }

  .loginSubtitle {
    font-size: 15px;
  }
}
