/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --bg-light: #f9fafb;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  --font: "Inter", system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Container */
.auth-container {
  max-width: 950px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Form Area */
.auth-form {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.auth-form p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Fields */
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  background: #f9fafb;
  transition: border 0.2s;
}
.field input:focus {
  border-color: var(--primary);
}

/* Help text */
.help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Button */
.btn {
  width: 100%;
  background: var(--primary);
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Switch link */
.switch {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
}
.switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Right Image */
.auth-image {
  background: url("https://img.freepik.com/free-vector/access-control-system-abstract-concept_335657-3180.jpg")
    no-repeat center;
  background-size: cover;
}

/* Alerts */
/* ----- Alerts (error + success) ----- */
.alert, .alert-error {
  display: block;
  padding: 12px 16px;
  background-color: rgba(88, 225, 83, 0.288);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(15,23,42,0.03);
}

/* Error (red box) */
.alert-error {
  background: linear-gradient(180deg, #fff6f6 0%, #fff2f2 100%);
  color: #7a1b1b;
  border: 1px solid rgba(239,68,68,0.25);
  position: relative;
  padding-left: 44px;
}
.alert-error::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* Success (green box) */
.alert-success {
  background: linear-gradient(180deg, #f3fcf7 0%, #ecf9f3 100%);
  color: #065f46;
  border: 1px solid rgba(5,150,105,0.25);
  padding-left: 44px;
  position: relative;
}
.alert-success::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 850px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-image {
    display: none;
  }
}


/* Dashboard Wrap */
.dashboard-wrap {
  max-width: 950px;
  margin: 40px auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.topbar h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* Card */
.card {
  background: #f9fafb;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Muted text */
.muted {
  color: var(--text-muted);
  font-size: 14px;
}


/* css on bording */

/* css on bording */


