* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f6f9fc;
  color: #32325d;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 500px;
}

h1 {
  margin-top: 0;
  font-size: 24px;
  color: #32325d;
}

.description {
  color: #6b7c93;
  margin-bottom: 24px;
  line-height: 1.5;
}

#payment-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #32325d;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #e6ebf1;
  border-radius: 4px;
  font-size: 16px;
  color: #32325d;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: #5469d4;
  box-shadow: 0 0 0 3px rgba(84, 105, 212, 0.1);
}

#login-error {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #e25950;
  background-color: #fff0f0;
  display: none;
}

#payment-element {
  margin-bottom: 24px;
}

.consent {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.4;
}

.consent input {
  margin-right: 8px;
}

button, .button-link {
  background-color: #5469d4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 12px;
}

button:hover:not(:disabled), .button-link:hover {
  background-color: #4f5db8;
}

button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

#error-message, #message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

#error-message {
  color: #e25950;
  background-color: #fff0f0;
  display: none;
}

#message.success {
  color: #0e6245;
  background-color: #e6f9f1;
}

#message.error {
  color: #e25950;
  background-color: #fff0f0;
}

#loading {
  text-align: center;
  color: #6b7c93;
  padding: 20px;
}
