/* © 2025 Authenti. All Rights Reserved. */

:root {
  --color-primary: #bd7bff;
  --color-secondary: #8ab4f8;
  --color-quaternary: #ffab91;
  --color-background-light: #f8f9fa;
  --color-text-dark: #212529;
  --color-text-light: #fff;
  --color-border: #dee2e6;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--color-background-light);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  margin: 0;
  box-sizing: border-box;
}

.main-container {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
}

.quote-section {
  display: none;
  width: 40%;
  background: var(--color-primary);
  padding: 60px 50px;
  box-sizing: border-box;
  flex-direction: column;
  position: relative;
  color: var(--color-text-light);
}

.quote-section .header-logo {
  position: absolute;
  top: 50px;
  left: 50px;
  height: 40px; /* Adjust the height as needed */
  width: auto; /* Let the width adjust automatically to maintain aspect ratio */
}

.quote-middle {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-content h3 {
  font-size: 1em;
  font-weight: 600;
  color: #ffd900;
  margin-bottom: 15px;
  margin-top: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.quote-content blockquote {
  font-size: clamp(1rem, 1.5vw, 1em);
  font-weight: 400;
  line-height: 1.8;
  border-left: 1px solid #ffd900;
  padding-left: 15px;
  padding-right: 25px;
  margin: 0;
  text-align: justify;
}

.quote-footer {
  margin-top: auto;
  font-size: 0.85em;
  opacity: 0.85;
  color: var(--color-text-light);
  text-align: left;
}

.quote-footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.signup-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: auto;
  background-color: #fff;
  position: relative;
}

.signup-header {
  width: 100%;
  text-align: right;
  padding: 30px 40px;
  box-sizing: border-box;
}

.signup-header p {
  margin: 0;
  font-size: 0.9em;
  color: #555;
}

.signup-header a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.signup-box {
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding: 0 20px 40px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signup-box h2 {
  color: var(--color-primary);
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 8px;
}

.signup-box > p {
  color: #6c757d;
  font-size: 1em;
  margin-bottom: 35px;
}

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

.input-group label {
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #495057;
  display: block;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"] {
  width: 100%;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px;
  font-size: 0.95em;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(189, 123, 255, 0.25);
  outline: none;
}

.primary-btn {
  width: 100%;
  padding: 14px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 10px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.primary-btn:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  transform: translateY(-2px);
}

.primary-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

.message-area {
  margin-top: 15px;
  font-size: 0.9em;
  min-height: 20px;
}

.hidden {
  display: none;
}

.terms {
  font-size: 0.8em;
  color: #6c757d;
  text-align: center;
  margin-top: 20px;
}

.terms a {
  color: var(--color-text-dark);
  font-weight: 500;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.success-title {
  color: var(--color-primary);
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 10px;
}

/* --- Password Strength Meter Styles --- */
.password-strength-meter {
  height: 6px;
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0;
  background-color: transparent;
  border-radius: 3px;
  transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.strength-bar.weak {
  width: 25%;
  background-color: #ef5350;
}
.strength-bar.medium {
  width: 50%;
  background-color: #ffab40;
}
.strength-bar.strong {
  width: 75%;
  background-color: #29b6f6;
}
.strength-bar.very-strong {
  width: 100%;
  background-color: #66bb6a;
}

.strength-text-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.password-hint,
.strength-text {
  font-size: 0.75em;
  color: #6c757d;
  margin-top: 4px;
  min-height: 1em;
}

.strength-text {
  font-weight: 600;
}

/* --- Styles for Show/Hide Password Toggle --- */
.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 45px; /* Make space for the icon */
}

.password-toggle-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9ca3af; /* A medium grey color */
  transition: color 0.2s ease;
}

.password-toggle-icon:hover {
  color: #6b7280; /* A darker grey on hover */
}

@media (min-width: 992px) {
  .signup-panel {
    width: 60%;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    box-shadow: -10px 0px 40px rgba(0, 0, 0, 0.1);
  }

  .quote-section {
    display: flex;
    flex-direction: column;
  }

  /* This new rule hides the logo in the right panel on desktop */
  .signup-panel .header-logo {
    display: none;
  }
}

@media (max-width: 991px) {
  .main-container {
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
  }

  .signup-panel {
    width: 100%;
  }

  .signup-box {
    padding: 20px;
    margin-top: 20px;
  }

  .signup-header {
    /* Turns the header into a flex container */
    display: flex;
    justify-content: space-between; /* Pushes items to opposite ends */
    align-items: center; /* Vertically aligns items */
    padding: 20px; /* Use consistent padding */
    box-sizing: border-box;
  }

  .signup-header p {
    margin: 0; /* Remove default margin from the paragraph */
  }

  .logo-placeholder {
    display: none;
  }

  .signup-panel .header-logo {
    display: block;
    height: 30px; /* Making the logo smaller */
    width: auto;
    margin: 0; /* Margin is now controlled by the flex container */
  }

  .quote-section {
    display: none;
  }
}

/* © 2025 Authenti. All Rights Reserved. */
