/* ============================================
   PRIVACY VAULT - ONBOARDING STYLES
   Navy Blue #1e3a8a (SEMPRE!)
   ============================================ */

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

:root {
  --primary: #1e3a8a; /* Navy Blue - COR OFICIAL */
  --primary-hover: #1e40af;
  --primary-light: #3b82f6;
  --primary-lighter: #eff6ff;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg-gray: #f9fafb;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-gray);
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 968px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
  
  .left-side {
    display: none;
  }
}

/* ============================================
   LEFT SIDE - BRANDING
   ============================================ */

.left-side {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.left-side::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -250px;
  right: -250px;
}

.brand-content {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.logo {
  margin-bottom: 30px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.brand-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 50px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

.feature {
  display: flex;
  align-items: start;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.feature p {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

.patent {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.patent strong {
  font-weight: 600;
}

/* ============================================
   RIGHT SIDE - FORM
   ============================================ */

.right-side {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.form-container {
  width: 100%;
  max-width: 480px;
}

.form-header {
  margin-bottom: 40px;
  text-align: center;
}

.form-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.form-header p {
  font-size: 16px;
  color: var(--text-gray);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lighter);
}

.form-group input.error {
  border-color: var(--error);
}

.error-message {
  font-size: 13px;
  color: var(--error);
  display: none;
}

.error-message.show {
  display: block;
}

/* Password Input */
.password-input {
  position: relative;
}

.password-input input {
  padding-right: 48px;
}

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

.toggle-password:hover {
  color: var(--primary);
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.weak { 
  width: 33%; 
  background: var(--error); 
}

.strength-fill.medium { 
  width: 66%; 
  background: var(--warning); 
}

.strength-fill.strong { 
  width: 100%; 
  background: var(--success); 
}

.strength-text {
  font-size: 12px;
  font-weight: 500;
  min-width: 60px;
}

.strength-text.weak { color: var(--error); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loader svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-social {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-social:hover {
  border-color: var(--text-gray);
  background: var(--bg-gray);
}

/* ============================================
   DIVIDER
   ============================================ */

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
  margin: 10px 0;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.form-divider span {
  padding: 0 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.form-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: var(--text-gray);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   ALERT/SUCCESS MESSAGES
   ============================================ */

.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: start;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.alert-message {
  font-size: 14px;
  opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .right-side {
    padding: 30px 20px;
  }
  
  .form-header h2 {
    font-size: 28px;
  }
  
  .form-header p {
    font-size: 15px;
  }
}
