/* Register Page Styles */

.register.container {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.register-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 480px;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.register-card .register-logo {
  max-width: 100%;
  width: 160px;
  height: 80px;
  object-fit: contain;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #0e92c9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
}

h2 {
  text-align: center;
  color: #222;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 600;
}

p {
  text-align: center;
  color: #777;
  margin-bottom: 30px;
  font-size: 14px;
}

/* Alert Messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}

.alert-error {
  background-color: #fee;
  color: #c33;
  border-left: 4px solid #c33;
}

.alert-success {
  background-color: #efe;
  color: #3c3;
  border-left: 4px solid #3c3;
}

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

/* Form Styles */
.register-field {
  width: 100%;
  margin-bottom: 20px;
}

.register-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.register-card .input-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.input-box:focus-within {
  border-color: #0e92c9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 146, 201, 0.1);
}

.register-card .input-box input,
.register-card .input-box textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 16px;
  background: transparent;
  color: #333;
}

.input-box textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  padding-top: 2px;
}

.register-card .input-box i {
  color: #999;
  min-width: 20px;
  flex-shrink: 0;
  text-align: center;
}

.input-box i.toggle-password {
  cursor: pointer;
  margin-left: 8px;
  transition: color 0.2s ease;
}

.input-box i.toggle-password:hover {
  color: #0e92c9;
}

.input-box i.toggle-password.active {
  color: #0e92c9;
}

/* Button Styles */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0e92c9 0%, #0a6fa0 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 146, 201, 0.3);
}

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

.btn-submit i {
  margin-right: 8px;
}

/* Footer */
.register-footer {
  margin-top: 30px;
  text-align: center;
}

.register-footer p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.register-footer a {
  color: #0e92c9;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.register-footer a:hover {
  color: #0a6fa0;
  text-decoration: underline;
}

/* Input Validation States */
.input-box.error {
  border-color: #c33;
  background: #fff5f5;
}

.input-box.success {
  border-color: #3c3;
  background: #f5fff5;
}

/* Responsive Design */
@media (max-width: 576px) {
  .register-card {
    padding: 24px 20px;
  }

  h2 {
    font-size: 24px;
  }

  .logo-circle {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .register-card .input-box {
    padding: 12px;
  }

  .btn-submit {
    padding: 14px;
    font-size: 15px;
  }
}

/* Loading State */
.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Social Register Section */
.social-register {
  margin-bottom: 20px;
}

.btn-gmail {
  width: 100%;
  padding: 14px 20px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-gmail:hover {
  background: #f8f9fa;
  border-color: #d2d3d4;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-gmail:active {
  background: #f1f3f4;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
}

.btn-gmail svg {
  flex-shrink: 0;
}

.btn-gmail span {
  font-weight: 500;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.divider span {
  padding: 0 16px;
  color: #999;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* Responsive untuk social button */
@media (max-width: 576px) {
  .btn-gmail svg {
    width: 16px;
    height: 16px;
  }

  .btn-gmail {
    padding: 12px 16px;
    font-size: 14px;
    gap: 10px;
  }
  
  .divider {
    margin: 20px 0;
  }
  
  .divider span {
    font-size: 12px;
    padding: 0 12px;
  }
}
