
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #656b66c0, #8b8997);
  font-family: Arial, sans-serif;
}

.card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  width: 92vw;
  max-width: 420px;
  text-align: center;
  animation: slideUpFade 0.6s ease-out;
  transform-origin: center;
}

h1, h2 {
  color: #040211;
  margin-bottom: 20px;
}

input, button {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1em;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #72707c;
  box-shadow: 0 0 0 3px rgba(106,90,205,.2);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

button {
  background: #787681;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background .3s;
  transition: all 0.3s ease;
}

button:hover {
  background: #bcbac4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

a {
  display: block;
  margin-top: 12px;
  color: #858394;
  text-decoration: underline;
}

.error, .err {
  color: red;
  margin-bottom: 10px;
  font-size: 0.95em;
  animation: shake 0.5s ease-in-out;
}

.back-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #eee;
  color: #000;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  text-decoration: none;
  font-weight: bold;
}

.back-btn:hover {
  background: #ddd;
}

.fa-eye, .fa-eye-slash {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #16151b;
  font-size: 1.2em;
}

@keyframes slideUpFade {
  from { 
    opacity: 0; 
    transform: translateY(30px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-select {
  background: linear-gradient(135deg, #656b66c0, #8b8997);
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-select .card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  width: min(500px, 92vw);
  text-align: center;
  animation: slideUpFade 0.6s ease-out;
}

.login-select h1 {
  margin-bottom: 25px;
  color: #040211;
}

.login-select .buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-select a.btn {
  display: block;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  background: #787681;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background .3s;
}

.login-select a.btn:hover {
  background: #bcbac4;
}

.login-select a.back-home {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 20px;
  border: 2px solid #787681;
  border-radius: 12px;
  color: #787681;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.login-select a.back-home:hover {
  background: #f0f0ff;
}

.signup-customer,
.signup-driver,
.signup-restaurant {
  background: linear-gradient(135deg, #656b66c0, #8b8997);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

.signup-customer .card,
.signup-driver .card,
.signup-restaurant .card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  width: 92vw;
  max-width: 720px;
  animation: slideUpFade 0.6s ease-out;
}

.signup-customer h1, .signup-customer h2,
.signup-driver h1, .signup-driver h2,
.signup-restaurant h1, .signup-restaurant h2 {
  color: #040211;
  text-align: center;
  margin-bottom: 20px;
}

.signup-customer input,
.signup-driver input,
.signup-restaurant input,
.signup-driver select,
.signup-restaurant textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 8px 0;
  font-size: 1rem;
  box-sizing: border-box;
}

.signup-customer input:focus,
.signup-driver input:focus,
.signup-restaurant input:focus {
  outline: none;
  border-color: #72707c;
  box-shadow: 0 0 0 3px rgba(106,90,205,.2);
  transition: all 0.3s ease;
}

.signup-customer button,
.signup-driver button,
.signup-restaurant button {
  background: #787681;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-customer button:hover,
.signup-driver button:hover,
.signup-restaurant button:hover {
  background: #bcbac4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.signup-customer a,
.signup-driver a,
.signup-restaurant a {
  color: #858394;
  text-decoration: underline;
}

.signup-customer .checkline,
.signup-driver .agree,
.signup-restaurant .checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-top: 6px;
}

.signup-customer .checkline input,
.signup-driver .agree input,
.signup-restaurant .checkline input {
  width: auto;
}

.signup-customer .error,
.signup-driver .error,
.signup-restaurant .error {
  color: red;
  text-align: center;
  margin: 8px 0;
}

.signup-restaurant #map {
  height: 300px;
  border-radius: 10px;
  margin-top: 10px;
  display: none;
}

label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 4px;
  color: #222;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row > div {
  flex: 1;
}

.back {
  display: inline-block;
  background: #787681;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.back:hover {
  background: #bcbac4;
  transform: translateY(-2px);
}
.phone-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.country-code-dropdown {
  flex-shrink: 0;
  width: 120px;
}

.country-code-select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.country-code-select:focus {
  outline: none;
  border-color: #72707c;
  box-shadow: 0 0 0 3px rgba(106,90,205,.2);
}

.phone-number-input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

.phone-number-input:focus {
  outline: none;
  border-color: #72707c;
  box-shadow: 0 0 0 3px rgba(106,90,205,.2);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.phone-hint {
  font-size: 0.8rem;
  color: #666;
  text-align: left;
  margin-top: 4px;
  margin-bottom: 8px;
}