/* Global theme styles extracted from signup2.php */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.page-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: 100px;
}

.signup-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.signup-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.signup-header {
  text-align: center;
  margin-bottom: 35px;
}

.signup-header h1 {
  color: #2d3748;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.signup-header p {
  color: #718096;
  font-size: 16px;
  font-weight: 400;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
  animation: slideUp 0.5s ease-out both;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
}

.input-wrapper {
  position: relative;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  background-color: #fff;
  transition: all 0.3s ease;
  font-family: inherit;
}

input::placeholder {
  color: #a0aec0;
  opacity: 1;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

input[type="text"]:valid,
input[type="email"]:valid,
input[type="password"]:valid {
  border-color: #48bb78;
}

.password-strength {
  font-size: 12px;
  margin-top: 5px;
  padding: 5px 0;
}

.strength-weak {
  color: #e53e3e;
}

.strength-medium {
  color: #dd6b20;
}

.strength-strong {
  color: #38a169;
}

.password-requirements {
  font-size: 12px;
  color: #718096;
  margin-top: 5px;
  padding: 8px 12px;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 3px solid #e2e8f0;
}

.requirement {
  margin: 2px 0;
}

.requirement.met {
  color: #38a169;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:focus {
  outline: 3px solid rgba(102, 126, 234, 0.4);
  outline-offset: 2px;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #cbd5e0;
  color: #fff;
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.message {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-weight: 500;
  text-align: center;
  border: 1px solid;
  transition: opacity 0.5s ease-in-out;
}

.message.success {
  background: #f0fff4;
  color: #38a169;
  border-color: #9ae6b4;
}

.message.error {
  background: #fed7d7;
  color: #e53e3e;
  border-color: #feb2b2;
}

.login-link {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
}

.login-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.login-link a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 15px;
    margin-top: 80px;
  }

  .signup-container {
    padding: 30px 25px;
    border-radius: 16px;
  }

  .signup-header h1 {
    font-size: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .signup-container {
    padding: 25px 20px;
  }

  .signup-header h1 {
    font-size: 22px;
  }

  .signup-header p {
    font-size: 14px;
  }

  .form-group {
    margin-bottom: 16px;
  }
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animation for form appearance */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group:nth-of-type(1) {
  animation-delay: 0.1s;
}
.form-group:nth-of-type(2) {
  animation-delay: 0.2s;
}
.form-group:nth-of-type(3) {
  animation-delay: 0.3s;
}
.form-group:nth-of-type(4) {
  animation-delay: 0.4s;
}
.form-group:nth-of-type(5) {
  animation-delay: 0.5s;
}
