/* === Brand Block: One Line, Perfectly Centered, Premium === */
.brand-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  background: #fff;
  border-radius: 2rem;
  padding: 10px 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 4px 24px 0 rgba(32, 32, 60, 0.12);
  border: 1.5px solid #e4e8ef;
  box-sizing: border-box;
}

.brand-gradient h1 {
  font-family: 'Poppins', Arial, 'Google Sans', Helvetica, sans-serif;
  font-size: 1.4rem;    /* This size fits perfectly in one line! */
  font-weight: 800;
  color: #23272f;
  letter-spacing: 0.03em;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  /* NO white-space, NO ellipsis, NO overflow! */
}

/* NEW MEDIA QUERIES FOR DATA INTELLIGENCE HEADING (Updated Values) */
/* For screens up to 480px wide (e.g., S20, iPhone 14 Pro) */
@media (max-width: 480px) {
  .brand-gradient h1 {
    font-size: 1.25rem; /* Changed from 1.6rem */
  }
}

/* For screens up to 375px wide (e.g., iPhone 5/SE, very narrow Z Fold 5) */
@media (max-width: 375px) {
  .brand-gradient h1 {
    font-size: 1.1rem; /* Changed from 1.3rem */
  }
}

/* For screens up to 320px wide (e.g., old iPhone models or very squished views) */
@media (max-width: 320px) {
  .brand-gradient h1 {
    font-size: 1.0rem; /* Changed from 1.1rem */
  }
}

/* === Card Containers: Unified, Stretch Children === */
.auth-card, .signup-card, .reset-card {
  background: #fff;
  border-radius: 2.2rem;
  box-shadow: 0 8px 44px 0 rgba(44, 44, 44, 0.12), 0 2.5px 8px #f3f7fb;
  max-width: 430px;
  width: calc(100% - 20px); /* ADD THIS NEW LINE */
  margin: 0 auto;
  padding: 46px 38px 38px 38px;
  text-align: center;
  border: 1.5px solid #f0f4f8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;    /* Ensures all children fill width */
  gap: 16px;
  box-sizing: border-box;
}
/* Add this NEW block below the existing .auth-card styles */
@media (max-width: 400px) {
  .auth-card {
    padding: 40px 25px 30px 25px; /* Slightly less padding for smaller screens */
  }
}

.signup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* === SSO Buttons: Full-Width, Consistent === */
.sso-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
  margin-top: 8px;
  width: 100%;
}
/* This is the new, final version */
.sso-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center; /* CHANGE BACK TO CENTER */
  border: none;
  border-radius: 1.3rem;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 16px 0;      /* CHANGE BACK TO SIMPLE PADDING */
  width: 100%;
  background: linear-gradient(92deg, #f7fafc 65%, #e5efff 100%);
  color: #141414;
  box-shadow: 0 3px 14px 0 rgba(32,32,32,0.08);
  cursor: pointer;
  transition: transform 0.13s, box-shadow 0.16s, background 0.22s;
  position: relative;
  letter-spacing: 0.03em;
}
/* This is the NEW, CORRECTED rule */
.sso-btn span {
  text-align: left;     /* Keep the left alignment */
  display: inline-block;/* Ensures proper block behavior */
}
.sso-btn svg, .sso-btn img {
  width: 25px;
  height: 25px;
}
.sso-btn:active { transform: scale(0.98); }
.sso-btn.google, .sso-btn.linkedin { border: 1.7px solid #e4e8ef; }
.sso-btn.google:hover {
   background: linear-gradient(94deg, #e8f1fa 60%, #b6e3ff 100%);
  color: #0077B5;
  border-color: #0077B5;
  box-shadow: 0 2px 12px #c9ebff;
}
.sso-btn.linkedin:hover {
  background: linear-gradient(94deg, #e8f1fa 60%, #b6e3ff 100%);
  color: #0077B5;
  border-color: #0077B5;
  box-shadow: 0 2px 12px #c9ebff;
}

/* === Divider Line === */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #b0b0b0;
  margin: 18px 0 14px 0;
  font-size: 15px;
  gap: 10px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.7px solid;
  border-image: linear-gradient(to right, #e4e8ef, #b6e3ff, #e4e8ef) 1;
  margin: 0 7px;
}

/* === Forms: Fix Input Alignment === */
.form-group {
  width: 100%;
  margin-bottom: 12px;
  box-sizing: border-box;
}
input, select, textarea {
  font-family: inherit;
  background: #F5F5F5;
  color: #141414;
  border: 1.5px solid #e4e8ef;
  border-radius: 11px;
  padding: 14px;
  width: 100%;
  margin: 0;
  transition: border 0.18s, background 0.14s;
  font-size: 1.07rem;
  box-sizing: border-box;
  display: block;
  text-align: left;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border: 1.7px solid #0077B5;
  background: #fff;
}

/* === Button === */
button, .btn, .btn-primary {
  background: linear-gradient(92deg, #141414 50%, #0077B5 100%);
  color: #fff;
  border: none;
  border-radius: 1.2rem;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 17px 0;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 5px 18px 0 rgba(60,60,60,0.10);
  transition: background 0.19s, box-shadow 0.17s, filter 0.18s;
  position: relative;
  overflow: hidden;
}
button::after, .btn::after, .btn-primary::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0; bottom: 0;
  width: 80%;
  background: linear-gradient(120deg, #1fd1f9 0%, transparent 100%);
  opacity: 0.12;
  transform: skewX(-22deg);
  pointer-events: none;
  animation: shine 3s linear infinite;
}
@keyframes shine {
  0% { left: -50%; }
  100% { left: 110%; }
}
button:hover, .btn:hover {
  background: linear-gradient(90deg, #0077B5 60%, #141414 100%);
  color: #fff;
  filter: brightness(1.09) drop-shadow(0 0 6px #1fd1f9);
  box-shadow: 0 0 0 2px #0077B5;
}

/* === Headings === */
h1, h2, h3 {
  font-family: 'Poppins', Arial, 'Google Sans', Helvetica, sans-serif;
  color: #141414;
  margin: 0 0 14px 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* === Links for forgot/reset/etc === */
.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  gap: 10px;
}
.form-links a {
  color: #0077B5;
  font-size: 15px;
  opacity: 0.88;
  font-weight: 500;
  transition: color 0.17s, opacity 0.17s;
}
.form-links a:hover {
  color: #141414;
  opacity: 1;
  text-decoration: underline;
}

/* === Messages (Success, Error, Info) === */
.success-message {
  color: #18b268;
  background: #ebfaf3;
  padding: 10px 0;
  border-radius: 9px;
  margin-bottom: 15px;
  font-size: 15px;
  border: 1.2px solid #c6f2e1;
}
.error-message {
  color: #e24c4c;
  background: #fce9e7;
  padding: 10px 0;
  border-radius: 9px;
  margin-bottom: 15px;
  font-size: 15px;
  border: 1.2px solid #ffc7c0;
}
.info-message {
  color: #0077B5;
  background: #f3f7fc;
  padding: 10px 0;
  border-radius: 9px;
  margin-bottom: 15px;
  font-size: 15px;
  border: 1.2px solid #d6eafe;
}
.account-container {
  background: #fff;
  max-width: 430px;
  margin: 50px auto;
  padding: 40px 36px 30px 36px;
  border-radius: 2rem;
  box-shadow: 0 8px 44px 0 rgba(44, 44, 44, 0.10);
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
}
.account-container h1 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #0077B5;
}
.account-container p {
  font-size: 1.13rem;
  margin: 10px 0;
}
.account-container .btn-primary {
  margin: 18px auto 0 auto;
  display: inline-block;
}
.account-container .alert {
  padding: 14px;
  background: #f9f3db;
  color: #916e04;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 1rem;
}
/* NEW STYLES FOR SIGNUP PAGE HEADING: "Create your account" */

.signup-title {
  font-size: 2rem; /* Default size for larger screens like laptop/iPad */
  margin-bottom: 20px; /* Add some space below it, looks good */
}

/* For screens up to 480px wide (e.g., S20, iPhone 14 Pro) */
@media (max-width: 480px) {
  .signup-title {
    font-size: 1.7rem; /* Slightly smaller for medium phones */
  }
}

/* For screens up to 480px wide (e.g., S20, iPhone 14 Pro) */
@media (max-width: 420px) {
  .signup-title {
    font-size: 1.6rem; /* Slightly smaller for medium phones */
  }
}

/* For screens up to 375px wide (e.g., iPhone 5/SE, very narrow Z Fold 5) */
@media (max-width: 375px) {
  .signup-title {
    font-size: 1.4rem; /* Even smaller for tiny screens like iPhone 5/SE */
  }
}

/* For screens up to 320px wide (e.g., very old iPhones or extremely squished views) */
@media (max-width: 320px) {
  .signup-title {
    font-size: 1.2rem; /* Smallest size for extreme cases */
  }
}