/* ===================================================
   Estágio Fácil — Signup CSS
   Paleta: Azul Oceano + Ciano
   =================================================== */

:root {
  --primary-color: #0369a1;
  --primary-hover: #0284c7;
  --primary-light: rgba(3, 105, 161, 0.1);
  --accent-color: #06b6d4;
  --accent-light: rgba(6, 182, 212, 0.12);
  --gradient-hero: linear-gradient(135deg, #0369a1 0%, #0891b2 50%, #06b6d4 100%);
  --background-color: #ffffff;
  --secondary-color: #f0f9ff;
  --text-color: #0c1a2e;
  --text-muted: #4b6280;
  --text-subtle: #94a3b8;
  --border-color: #bae6fd;
  --border-subtle: #e0f2fe;
  --shadow-sm: 0 2px 8px rgba(3, 105, 161, 0.08);
  --shadow: 0 4px 16px rgba(3, 105, 161, 0.12);
  --shadow-md: 0 8px 32px rgba(3, 105, 161, 0.16);
  --shadow-lg: 0 16px 48px rgba(3, 105, 161, 0.2);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-full: 999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Signup Page */
.signup-container {
  display: flex;
  min-height: calc(100vh - 4.25rem);
  background-color: var(--secondary-color);
}

.signup-content {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  background-color: var(--background-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border-subtle);
  align-self: flex-start;
}

.signup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.signup-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 0.4rem;
  letter-spacing: -0.025em;
  font-family: var(--font-body);
}

.signup-header p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Account Type Selector */
.account-type-selector {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.account-type {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.25rem 1rem;
  background-color: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.account-type i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.account-type span {
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  transition: var(--transition);
}

.account-type:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
}

.account-type.active {
  background: var(--gradient-hero);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.account-type.active i,
.account-type.active span {
  color: white;
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.125rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-color);
  font-family: var(--font-body);
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.875rem;
  z-index: 1;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
  background: var(--background-color);
  color: var(--text-color);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-with-icon input::placeholder {
  color: var(--text-subtle);
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

.select-wrapper i:not(.arrow) {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.875rem;
  z-index: 1;
  pointer-events: none;
}

.select-wrapper .arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
  font-size: 0.75rem;
}

.select-wrapper select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.5rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  appearance: none;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: var(--transition);
  cursor: pointer;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Password Strength */
.password-strength {
  margin-top: 0.625rem;
}

.strength-meter {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.strength-segment {
  height: 3px;
  flex: 1;
  background-color: var(--border-subtle);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.strength-segment.active:nth-child(1) { background-color: #ef4444; }
.strength-segment.active:nth-child(2) { background-color: #f59e0b; }
.strength-segment.active:nth-child(3) { background-color: #06b6d4; }
.strength-segment.active:nth-child(4) { background-color: #10b981; }

.strength-text {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Terms */
.form-group.terms {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-group.terms input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-color);
  margin-top: 0.15rem;
  flex-shrink: 0;
  cursor: pointer;
}

.form-group.terms label {
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 0;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-group.terms a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.form-group.terms a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Submit */
.btn-block {
  display: flex;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  min-height: 3rem;
  font-family: var(--font-body);
}

.btn-block.btn-primary {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.3);
}

.btn-block.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(3, 105, 161, 0.4);
  transform: translateY(-1px);
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-subtle);
}

.divider span {
  position: relative;
  background-color: var(--background-color);
  padding: 0 0.875rem;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Social */
.social-signup {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: var(--background-color);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
  font-family: var(--font-body);
  min-height: 2.75rem;
}

.social-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.social-btn.google img { width: 1.125rem; height: 1.125rem; }
.social-btn.linkedin i { color: #0077b5; font-size: 1.125rem; }

/* Footer */
.signup-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.signup-footer a {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.signup-footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Image Panel */
.signup-image {
  display: none;
  flex: 1;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.signup-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  z-index: 1;
}

.benefits-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.benefits-card h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  color: var(--text-color);
  text-align: center;
  letter-spacing: -0.02em;
  font-family: var(--font-body);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.benefits-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefits-list li i {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--gradient-hero);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.3);
}

.benefits-list li h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-color);
  font-family: var(--font-body);
}

.benefits-list li p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Header active state */
.auth-buttons .btn.active {
  background: var(--gradient-hero);
  color: white;
  border-color: transparent;
}

/* Responsive */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .signup-content {
    margin: 4rem auto;
    padding: 3rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .signup-container {
    background-color: var(--background-color);
  }

  .signup-content {
    margin: auto 0 auto auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 580px;
  }

  .signup-image {
    display: block;
  }
}

@media (min-width: 1280px) {
  .signup-content {
    max-width: 640px;
  }
}
