/* ======= BASE STYLES ======= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #333;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ======= REGISTER CONTAINER ======= */
.register-container {
  background: #fff;
  width: 100%;
  max-width: 850px;
  padding: 36px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
  border-top: 6px solid #b2853c;
}

.register-container h2 {
  text-align: center;
  font-size: 2rem;
  color: #b2853c;
  margin-bottom: 8px;
}

.sub-title {
  text-align: center;
  color: #666;
  font-weight: 600;
  margin-bottom: 28px;
}

/* ======= FORM LAYOUT ======= */
form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.input-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.input-group.full {
  flex: 1 1 100%;
}

label {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

input,
select {
  padding: 10px 14px;
  border-radius: 28px;
  border: 1.5px solid #ddd;
  background: #f9f9f9;
  font-size: 15px;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  border-color: #b2853c;
  outline: none;
  background-color: #fff;
}

/* File Input */
input[type="file"] {
  border: none;
  background: transparent;
  padding-left: 0;
}

/* ======= BUTTONS ======= */
button {
  background: #b2853c;
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 28px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #9a6d2d;
}

.submit-group {
  text-align: center;
  margin-top: 24px;
}

.submit-group p {
  margin-top: 12px;
  font-size: 14px;
  color: #444;
}

.submit-group a {
  color: #b2853c;
  text-decoration: none;
  font-weight: 600;
}

.submit-group a:hover {
  text-decoration: underline;
}

/* ======= FEEDBACK ======= */
.error-message {
  color: #c0392b;
  font-size: 13px;
  margin-top: 4px;
}

.success-border {
  border: 2px solid #2ecc71;
}

/* ======= RESPONSIVE BREAKPOINTS ======= */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .input-group,
  .input-group.full {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .register-container {
    padding: 24px 18px;
  }

  .register-container h2 {
    font-size: 1.6rem;
  }

  button {
    width: 100%;
  }
}
