* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: peyda;
  src: url("font/Peyda-Medium.ttf") format("truetype");
}
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at top right,
    rgba(175, 6, 164, 0.02),
    transparent 32%
  ),
  linear-gradient(180deg, #fcfafc 0%, #f9f6f9 100%);
  padding: 20px;
  font-family: "peyda";
}

.login-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 45px 35px;
  box-shadow: 0 20px 50px rgba(175, 6, 164, 0.12);
  border: 1px solid rgba(175, 6, 164, 0.12);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: -90px;
  left: -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(175, 6, 164, 0.18), transparent 70%);
  border-radius: 50%;
}

h2 {
  text-align: center;
  color: #2b2b2b;
  font-size: 30px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #444;
  font-size: 15px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  height: 52px;
  border: 1.8px solid rgba(175, 6, 164, 0.22);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
  background: #fff;
}

.form-group input:focus {
  border-color: #A3238e;
  box-shadow: 0 0 0 4px rgba(175, 6, 164, 0.1);
  transform: translateY(-1px);
}

.login-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #A3238e, #c91bbd);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 12px 25px rgba(175, 6, 164, 0.28);
  position: relative;
  z-index: 1;
  font-family: "peyda";
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(175, 6, 164, 0.35);
}

.login-btn:active {
  transform: translateY(0);
}

.register-link {
  text-align: center;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.register-link a {
  color: #A3238e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.register-link a:hover {
  background: rgba(175, 6, 164, 0.08);
  color: #91018a;
}

.brand {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.brand a{
  text-decoration: none;
  color: #666;
}

@media (max-width: 480px) {
  .login-card {
    padding: 35px 22px;
    border-radius: 20px;
  }

  .login-card h2 {
    font-size: 26px;
  }
  body{
    padding: 50px;
  }
  .login-btn{
    height: 42px;
    font-size: 15px;
  }
  .form-group label{
    font-size: 13px;
  }
  .form-group input{
    height: 45px;
  }
  .register-link a {
    font-size: 13px;
  }
}

#user.error {
  border: 1px solid red !important;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
}

#phone.error {
  border: 1px solid red !important;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
}

#pass.error {
  border: 1px solid red !important;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
}
.error-msg {
  background: #fee2e2;
  color: #dc3545;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 15px;
  border-right: 3px solid #dc3545;
  text-align: right;
}
.success-msg {
  background: #d1fae5;
  color: #10b981;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 15px;
  border-right: 3px solid #10b981;
  text-align: right;
}