:root {
  --primary: #044f27;
  --primary-dark: #03301a;
  --primary-light: #06673b;
  --gray: #f8f9fa;
  --dark: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(rgba(4,79,39,0.46), rgba(4,79,39,0.48)), url('../../images/hero-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--dark);
}

.register-container {
  background: white;
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.register-header {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 40px 25px;
}

.register-header i {
  font-size: 4rem;
  margin-bottom: 15px;
}

.register-header h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.register-header p {
  opacity: 0.95;
  font-size: 1.1rem;
}

.register-body {
  padding: 45px 40px;
}

.form-group {
  margin-bottom: 26px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #444;
  font-size: 1.05rem;
}

input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 16px 50px 16px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1.05rem;
  transition: all 0.3s;
  background: #fdfdfd;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 5px rgba(4, 79, 39, 0.15);
}

.input-icon {
  position: absolute;
  right: 18px;
  top: 48px;
  color: #777;
  font-size: 1.2rem;
  pointer-events: none;
}

/* Dropdown Styling */
.select-wrapper {
  position: relative;
}

select {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1.05rem;
  background: #fdfdfd;
  color: #444;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s;
}

select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 5px rgba(4, 79, 39, 0.15);
}

.select-wrapper::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  pointer-events: none;
  font-size: 1.1rem;
}

/* Submit Button */
.btn-register {
  width: 100%;
  padding: 17px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.btn-register:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(4, 79, 39, 0.45);
}

.btn-register i {
  margin-right: 10px;
}

/* Login Link */
.login-link {
  text-align: center;
  margin-top: 35px;
  padding: 25px 20px 0;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  font-size: 1.05rem;
  color: #555;
}

.login-link a {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Phone input group (match login style) */
.phone-input-group { position: relative; }
.phone-input-group input[type="tel"] { padding-left: 44px; }
.phone-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-weight: 600;
  user-select: none;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
  .register-container { border-radius: 14px; }
  .register-header { padding: 35px 20px; }
  .register-header h1 { font-size: 2.1rem; }
  .register-body { padding: 35px 25px; }
  .btn-register { font-size: 1.2rem; }
}
