* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2f5bea;
  --primary-dark: #2148c7;
  --primary-soft: #eaf0ff;
  --primary-border: #b9c8ff;

  --dark: #0f172a;
  --text: #1e293b;
  --gray: #64748b;
  --border: #dbe3f0;
  --white: #ffffff;

  --danger: #1d4ed8;
  --success: #15803d;
}

body {
  min-height: 100vh;
  font-family: Inter, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
}

button,
input {
  font: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}


/* LEFT SIDE */

.left-section {
  min-height: 100vh;
  padding: 42px 55px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #e8edf7;

  background:
    radial-gradient(
      circle at 72% 13%,
      rgba(47, 91, 234, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 8% 94%,
      rgba(47, 91, 234, 0.08),
      transparent 25%
    ),
    linear-gradient(
      145deg,
      #f8fbff,
      #eef4ff
    );
}

.left-section::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -70px;

  width: 300px;
  height: 300px;

  border-radius: 50%;
  background: rgba(47, 91, 234, 0.08);
}

.left-section::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -100px;

  width: 250px;
  height: 250px;

  border-radius: 50%;
  background: rgba(47, 91, 234, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;

  position: relative;
  z-index: 5;

  color: var(--dark);
  font-size: 26px;
  font-weight: 800;
}

.logo span:last-child {
  color: var(--dark);
}

.logo span:last-child::after {
  content: "";
}

.logo-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 18px;
  background: var(--white);

  font-size: 31px;

  border: 1px solid #dce6fb;

  box-shadow:
    0 14px 34px
    rgba(47, 91, 234, 0.16);
}

.left-content {
  position: relative;
  z-index: 3;
  max-width: 610px;
  margin-top: 8px;
}

.pet-design {
  width: 100%;
  max-width: 540px;
  height: 305px;
  margin: 0 auto;
  position: relative;
}

.main-pet {
  position: absolute;
  top: 72px;
  left: 50%;

  transform: translateX(-50%);

  width: 192px;
  height: 192px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  border: 8px solid rgba(47, 91, 234, 0.55);

  background: white;
  font-size: 105px;

  box-shadow:
    0 22px 50px
    rgba(15, 23, 42, 0.16);

  z-index: 3;
}

.small-card {
  position: absolute;

  width: 180px;
  min-height: 132px;

  padding: 18px;

  text-align: center;

  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);

  border: 1px solid #e6ecf7;

  box-shadow:
    0 16px 38px
    rgba(15, 23, 42, 0.12);

  z-index: 2;
}

.small-card span {
  display: block;
  margin-bottom: 9px;
  font-size: 52px;
}

.small-card p {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.card-one {
  top: 20px;
  left: 8px;
  transform: rotate(-4deg);
}

.card-two {
  top: 22px;
  right: 7px;
  transform: rotate(4deg);
}

.card-three {
  right: 45px;
  bottom: 8px;
  transform: rotate(-3deg);
}

.left-content h1 {
  max-width: 590px;

  font-size: clamp(
    44px,
    4.6vw,
    70px
  );

  line-height: 1.02;
  letter-spacing: -2px;
}

.left-content h1 span {
  display: block;
  color: var(--primary);
}

.tagline {
  max-width: 530px;
  margin-top: 22px;

  color: var(--gray);
  font-size: 18px;
  line-height: 1.6;
}


/* RIGHT SIDE */

.right-section {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 45px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fbfdff
    );
}

.login-box {
  width: 100%;
  max-width: 560px;
}

.mobile-logo {
  display: none;
}

.login-box h2 {
  margin-bottom: 10px;
  font-size: 31px;
  color: var(--dark);
}

.subtitle {
  margin-bottom: 31px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.5;
}

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

.input-group label {
  display: block;
  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.input-group input {
  width: 100%;
  height: 62px;

  padding: 0 17px;

  outline: none;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: #f8fbff;

  color: var(--dark);

  transition: 0.2s ease;
}

.input-group input:focus {
  border-color: var(--primary);

  background: #ffffff;

  box-shadow:
    0 0 0 4px
    rgba(47, 91, 234, 0.12);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 77px;
}

.show-password {
  position: absolute;
  top: 50%;
  right: 15px;

  transform: translateY(-50%);

  border: none;
  background: transparent;

  color: var(--primary);
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin: 6px 0 23px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--gray);
  font-size: 14px;

  cursor: pointer;
}

.remember-me input {
  accent-color: var(--primary);
}

.forgot-password {
  border: none;
  background: transparent;

  color: var(--primary);
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

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

.login-button {
  width: 100%;
  height: 58px;

  border: none;
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #3564ff,
      var(--primary)
    );

  color: white;

  font-size: 16px;
  font-weight: 800;

  cursor: pointer;

  transition: 0.2s ease;

  box-shadow:
    0 12px 28px
    rgba(47, 91, 234, 0.28);
}

.login-button:hover {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );

  transform: translateY(-1px);
}

.login-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.message {
  min-height: 22px;
  margin-top: 13px;

  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;

  margin: 20px 0;

  color: #94a3b8;
}

.divider::before,
.divider::after {
  content: "";

  flex: 1;
  height: 1px;

  background: #e5eaf3;
}

.create-account-button {
  width: 100%;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--primary);
  border-radius: 14px;

  color: var(--primary);
  text-decoration: none;
  font-weight: 800;

  transition: 0.2s ease;
}

.create-account-button:hover {
  background: var(--primary-soft);
}

.visitor-link {
  display: block;
  margin-top: 18px;

  text-align: center;

  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

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

.footer-logo {
  margin-top: 35px;

  text-align: center;

  color: var(--gray);
  font-size: 14px;
}


/* TABLET */

@media (max-width: 950px) {

  .login-page {
    grid-template-columns: 1fr;
  }

  .left-section {
    display: none;
  }

  .right-section {
    padding: 35px 20px;

    background:
      linear-gradient(
        145deg,
        #f7faff,
        #ffffff
      );
  }

  .mobile-logo {
    display: block;

    margin-bottom: 35px;

    text-align: center;

    color: var(--primary);
    font-size: 25px;
    font-weight: 800;
  }

}


/* MOBILE */

@media (max-width: 520px) {

  .right-section {
    align-items: flex-start;
    padding-top: 28px;
  }

  .login-box h2 {
    font-size: 24px;
  }

  .input-group input {
    height: 56px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }

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

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .login-page {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .left-section {
    display: none !important;
  }

  .right-section {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 30px 20px !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .login-box {
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
  }

  .mobile-logo {
    display: block !important;
    margin-bottom: 30px;
    text-align: center;
  }
}

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

  .right-section {
    padding: 24px 18px 35px !important;
  }

  .login-box h2 {
    font-size: 25px;
    line-height: 1.25;
  }

  .login-options {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .input-group input {
    height: 56px;
  }
}

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

  .login-options {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =====================================================
   LOGIN PAGE - FINAL MOBILE RESPONSIVE FIX
   Paste this at the VERY END of login.css
===================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

  .login-page {
    width: 100%;
    min-height: 100vh;

    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .left-section {
    display: none !important;
  }

  .right-section {
    width: 100%;
    min-height: 100vh;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 35px 22px !important;
  }

  .login-box {
    width: 100% !important;
    max-width: 560px !important;

    margin: 0 auto !important;
  }

  .mobile-logo {
    display: block !important;

    margin-bottom: 30px;

    text-align: center;

    color: var(--primary);

    font-size: 25px;
    font-weight: 800;
  }
}


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

  .right-section {
    min-height: 100vh;

    align-items: flex-start !important;

    padding: 25px 17px 38px !important;
  }

  .login-box {
    max-width: 100% !important;
  }

  .mobile-logo {
    margin-bottom: 24px;

    font-size: 22px;
  }

  .login-box h2 {
    font-size: 25px;
    line-height: 1.25;
  }

  .subtitle {
    margin-bottom: 24px;

    font-size: 14px;
    line-height: 1.55;
  }

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

  .input-group input {
    width: 100%;
    height: 56px;

    font-size: 16px;
  }

  .login-options {
    width: 100%;

    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 12px;

    margin: 5px 0 21px;
  }

  .remember-me,
  .forgot-password {
    font-size: 13px;
  }

  .login-button,
  .create-account-button {
    width: 100%;
  }

  .footer-logo {
    margin-top: 28px;
  }
}


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

  .right-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .login-options {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .login-box h2 {
    font-size: 23px;
  }
}
/* =========================================
   FORCE REAL MOBILE LAYOUT
   ========================================= */

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

  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .login-page {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh !important;

    display: block !important;
    grid-template-columns: none !important;
  }

  .left-section {
    display: none !important;
  }

  .right-section {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;

    padding: 28px 18px 40px !important;
  }

  .login-box {
    width: 100% !important;
    max-width: 520px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
  }

  .mobile-logo {
    display: block !important;
    margin-bottom: 28px !important;

    text-align: center !important;
    font-size: 24px !important;
    font-weight: 800 !important;
  }

  .login-box h2 {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  .subtitle {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 25px !important;
  }

  .input-group input {
    width: 100% !important;
    height: 56px !important;
    font-size: 16px !important;
  }

  .login-options {
    width: 100% !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 10px !important;
  }

  .login-button,
  .create-account-button {
    width: 100% !important;
  }
}

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

  .right-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .login-options {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}
/* ===== MOBILE LOGIN FIX ===== */

@media (max-width: 950px) {
  .login-page {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .left-section {
    display: none !important;
  }

  .right-section {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 24px 18px 40px !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .login-box {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  .mobile-logo {
    display: block !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    font-size: 23px !important;
    font-weight: 800 !important;
  }
}

@media (max-width: 520px) {
  .login-box h2 {
    font-size: 25px !important;
    line-height: 1.25 !important;
  }

  .subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }

  .input-group input {
    width: 100% !important;
    height: 56px !important;
    font-size: 16px !important;
  }

  .login-options {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .login-button,
  .create-account-button {
    width: 100% !important;
  }
}

@media (max-width: 380px) {
  .login-options {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}
/* Login & Signup Footer */

.footer-column{
    display:none;
}

.footer-container{
    grid-template-columns:1fr 1fr;
}

.footer-brand{
    justify-self:start;
}

.footer-founder{
    justify-self:end;
}

.footer-bottom{
    grid-column:1/-1;
}

/* Compact branded hero for phones */
.mobile-hero { display: none; }

@media (max-width: 950px) {
  .right-section {
    flex-direction: column !important;
    align-items: center !important;
  }

  .mobile-hero {
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 auto 22px;
    padding: 16px;
    border: 1px solid #dbe6ff;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0e245d, #2f5bea);
    box-shadow: 0 14px 32px rgba(31, 70, 180, .22);
  }

  .mobile-hero-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    font-size: 34px;
    box-shadow: 0 8px 18px rgba(5, 22, 72, .22);
  }

  .mobile-hero strong,
  .mobile-hero span { display: block; }

  .mobile-hero strong {
    font-size: 20px;
    line-height: 1.15;
  }

  .mobile-hero span {
    margin-top: 5px;
    color: #dce7ff;
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-logo { display: none !important; }
}

@media (max-width: 380px) {
  .mobile-hero { padding: 13px; gap: 11px; }
  .mobile-hero-icon { width: 50px; height: 50px; flex-basis: 50px; font-size: 29px; }
  .mobile-hero strong { font-size: 18px; }
}


/* Keep login options neatly aligned on phone screens */
@media (max-width: 520px) {
  .login-options {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .remember-me,
  .forgot-password {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px !important;
  }

  .forgot-password { margin-left: auto; }
}


/* Override the narrow-phone column rule: keep both actions side by side */
@media (max-width: 380px) {
  .login-options {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}
