/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Register Container */
.register-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.register-card {
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

/* Logo */
.logo-container {
  text-align: center;
  padding: 20px 0;
}

.logo {
  max-height: 60px;
  max-width: 80%;
}

/* Banner */
.banner-container {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.banner-image:hover {
  transform: scale(1.05);
}

/* Form Container */
.form-container {
  padding: 24px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 24px;
}

/* Form Elements */
.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

input[type="tel"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 15px;
  transition: var(--transition);
}

input[type="tel"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

input[type="tel"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(51, 93, 103, 0.2);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.toggle-password:hover {
  color: var(--text-color);
}

/* PIX Section */
.pix-section {
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.pix-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.pix-type-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pix-type-btn {
  flex: 1;
  min-width: 70px;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.pix-type-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.pix-type-btn.active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

/* Register Button */
.register-button {
  width: 100%;
  padding: 14px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.register-button:hover {
  background-color: #3d6d78;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.register-button:active {
  transform: translateY(0);
}

/* Login Link */
.login-link {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.login-link a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.login-link a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .register-container {
    padding: 0;
  }

  .banner-container {
    height: 140px;
  }

  .form-container {
    padding: 20px 16px;
  }

  h2 {
    font-size: 22px;
  }

  input[type="tel"],
  input[type="password"],
  input[type="text"] {
    padding: 12px 12px 12px 40px;
  }

  .pix-type-selector {
    flex-wrap: wrap;
  }

  .pix-type-btn {
    flex: 1 0 calc(50% - 4px);
    font-size: 12px;
    padding: 8px 6px;
  }
}

@media (min-width: 768px) {
  .register-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .register-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }

  .banner-container {
    height: 180px;
  }
}
