* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: url('../assets/motif-karo.png') repeat;
  background-size: 250px;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.register-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 420px;
}

.register-form h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #2c3e50;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

.register-form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 500;
}

.register-form input,
.register-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.register-form button {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  background-color: #b71c1c;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.register-form button:hover {
  background-color: #a31515;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}

.login-link a {
  color: #b71c1c;
  text-decoration: none;
}

.error-message {
  color: red;
  font-size: 12px;
  margin-top: 3px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('assets/motif-karo.png') repeat;
  background-size: 300px;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.container h2 {
  text-align: center;
  color: #b30000;
  margin-bottom: 5px;
}

.container p {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

form input,
form select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

form button {
  width: 100%;
  background-color: #b30000;
  color: white;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

form button:hover {
  background-color: #800000;
}

.login-link {
  text-align: center;
  margin-top: 10px;
}

.login-link a {
  color: #b30000;
  text-decoration: none;
}

#error-msg {
  color: red;
  text-align: center;
  margin-top: 10px;
}


body {
  font-family: 'Poppins', sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 0;
}

.login-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.login-form h2 {
  text-align: center;
  margin-bottom: 10px;
}

.login-form .subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px 40px 12px 35px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.input-group i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  color: #888;
}

.input-group .toggle-password {
  right: 10px;
  left: auto;
  cursor: pointer;
  color: #888;
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #b30000;;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
}

button[type="submit"]:hover {
  background-color: #b30000;;
}

.login-link {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}

.login-link a {
  color: #b30000;;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}



/* ===== Styling khusus masyarakat.php ===== */
.masyarakat-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
}

.masyarakat-page .container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.masyarakat-page .welcome {
    text-align: center;
    margin-bottom: 20px;
}

.masyarakat-page .welcome h2 {
    margin-bottom: 5px;
}

.masyarakat-page form label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

.masyarakat-page form input,
.masyarakat-page form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.masyarakat-page form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.masyarakat-page .btn-red {
    background-color: #b50000;
}

.masyarakat-page .btn-red:hover {
    background-color: #900000;
}
