/* PPY2 Mobile-First Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #2d3436;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 16px;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 32px 24px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  margin-top: 20px;
  margin-bottom: 20px;
}

.logo {
  text-align: center;
  margin-bottom: 24px;
  font-size: 32px;
}

h1 {
  color: #2d3436;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

h2 {
  color: #636e72;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
}

p {
  margin-bottom: 16px;
  color: #636e72;
  font-size: 16px;
  line-height: 1.6;
}

.code-display {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 20px;
  border-radius: 16px;
  font-family: 'Courier New', monospace;
  font-size: 32px;
  text-align: center;
  margin: 24px 0;
  font-weight: bold;
  letter-spacing: 4px;
  color: white;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

form {
  margin-top: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #2d3436;
  font-weight: 600;
  font-size: 15px;
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #dfe6e9;
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 20px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #6c5ce7;
  background: white;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
  color: white;
  padding: 18px 32px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
  margin-top: 8px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(86, 171, 47, 0.5);
}

button:active {
  transform: translateY(0);
}

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}

.alert-error {
  background: #fff5f5;
  border: 2px solid #ff6b6b;
  color: #c92a2a;
}

.alert-success {
  background: #f0fdf4;
  border: 2px solid #51cf66;
  color: #2f9e44;
}

.alert-info {
  background: #f0f9ff;
  border: 2px solid #74c0fc;
  color: #1971c2;
}

.alert-warning {
  background: #fff9db;
  border: 2px solid #ffd43b;
  color: #e67700;
}

.message-box {
  background: #f8f9fa;
  border-left: 5px solid #6c5ce7;
  padding: 24px;
  margin: 24px 0;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #f1f3f5;
  text-align: center;
  color: #adb5bd;
  font-size: 14px;
  font-weight: 500;
}

.optional {
  font-size: 13px;
  color: #adb5bd;
  font-weight: normal;
  font-style: italic;
}

.help-text {
  font-size: 14px;
  color: #868e96;
  margin-bottom: 12px;
  line-height: 1.5;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
}

.help-text ul {
  margin-left: 20px;
  margin-top: 8px;
}

a {
  color: #6c5ce7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

a:hover {
  color: #5f3dc4;
  text-decoration: underline;
}

.success-icon {
  font-size: 64px;
  text-align: center;
  margin: 24px 0;
  animation: bounce 0.6s ease;
}

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

.icon {
  margin-right: 8px;
}

.btn-link {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
  box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
}

/* Mobile optimization */
@media (max-width: 640px) {
  body {
    padding: 12px;
  }
  
  .container {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .code-display {
    font-size: 24px;
    letter-spacing: 2px;
    padding: 16px;
  }
  
  button {
    padding: 16px 24px;
    font-size: 17px;
  }
  
  input[type="email"],
  input[type="text"],
  textarea {
    padding: 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Touch-friendly spacing */
@media (hover: none) {
  button {
    padding: 18px 32px;
    margin-top: 12px;
  }
  
  input, textarea {
    margin-bottom: 24px;
  }
}
