* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-container {
  width: 100%;
  padding: 20px;
}

.auth-card {
  background: white;
  padding: 35px 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  max-width: 400px;
  margin: auto;
  text-align: center;
}

.auth-card h2 {
  margin-bottom: 25px;
  color: #1e293b;
}

.auth-card input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.auth-card input:focus {
  outline: none;
  border-color: #3b82f6;
}

.auth-card button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #3b82f6;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.auth-card button:hover {
  background: #2563eb;
}

.auth-card p {
  margin-top: 15px;
  font-size: 14px;
}

.auth-card a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}
.password-group {
  position: relative;
}

.password-group input {
  width: 100%;
  padding-right: 60px;
}

.toggle-pass {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  color: #4A7CF3;
  font-weight: 500;
}

label {
  display: block;
  text-align: left;
  font-size: 14px;
  margin: 10px 0 5px;
  color: #334155;
}

.password-group {
  position: relative;
}

.password-group input {
  width: 100%;
  padding-right: 60px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 13px;
  color: #2563eb;
  font-weight: 500;
}

.alert-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  opacity: 0;
  transition: 0.3s ease;
  font-size: 14px;
  z-index: 999;
}

.alert-box.active {
  opacity: 1;
  bottom: 40px;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.close-btn {
  background: #e5e7eb;
  color: #333;
}

.input-error {
  border: 2px solid #ff3b3b !important;
  box-shadow: 0 0 5px rgba(255,0,0,0.4);
}

.phone-wrapper {
  position: relative;
}

.phone-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #555;
}

.phone-wrapper input {
  padding-left: 70px;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.captcha-refresh {
  cursor: pointer;
  font-size: 18px;
}

.auth-card .btn-danger {
  background: #ef4444;
}

.auth-card .btn-danger:hover {
  background: #dc2626;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  font-size: 13px;
  color: #64748b;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.divider span {
  padding: 0 10px;
}

.google-btn {
  width: 45px;
  cursor: pointer;
  transition: 0.2s ease;
}

.google-btn:hover {
  transform: scale(1.1);
}

.google-login{
display:flex;
align-items:center;
justify-content:center;
gap:12px;

width:100%;
padding:14px;

border-radius:12px;
border:1px solid #dadce0;

background:#ffffff !important;
color:#3c4043 !important;

font-size:15px;
font-weight:600;

cursor:pointer;

transition:all .2s ease;
}

.google-login:hover{
background:#f8f9fa !important;
box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

.google-login img{
width:22px;
height:22px;
}

.google-login:active{
transform:scale(.98);
}