:root {
  --blue: #1e40af;
  --blue-light: #2563eb;
  --soft: #f9fbff;
  --gray: #6b7280;
  --border: #e5e7eb;
  --success: #22c55e;
  --warning: #f97316;
}

/* GLOBAL STYLES */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('../images/bgd-dash.jpg');
  background-size: cover;
  background-position: center;
  padding: 20px;
}

/* ALERTS */
.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 1000;
}

.alert.show {
  opacity: 1;
  pointer-events: auto;
}

.alert.success {
  background: var(--success);
  box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3);
}

.alert.warning {
  background: var(--warning);
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3);
}

/* MAIN CONTAINER */
main {
  width: 100%;
  max-width: 500px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  color: var(--blue);
  font-size: 24px;
}

header p {
  color: var(--gray);
  font-size: 14px;
}

/* FORM */
form {
  display: grid;
  gap: 16px;
}

.row {
  display: flex;
  gap: 10px;
}

.row .col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--gray);
}

input[type=text],
input[type=email],
input[type=tel],
input[type=password] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
}

input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* FILE INPUT & AVATAR */
.file-input {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.file-input .avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.file-input .avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #ccc;
}

.file-input .file-label {
  margin-top: 48px;
  display: inline-block;
  padding: 10px 20px;
  background-color: white;
  color: var(--blue);
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--blue);
}

.file-input .file-label:hover {
  background-color: var(--blue-light);
  color: white;
}

.file-input .file-label input[type="file"] {
  display: none;
}

/* BUTTONS */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.actions button {
  min-width: 10px;
  padding: 12px 18px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.actions .btn-primary {
  background: var(--blue-light);
  color: white;
}

.actions .btn-primary:hover {
  background: var(--blue);
}

.actions .btn-ghost {
  border: 1px solid var(--blue-light);
  color: var(--blue);
  background: transparent;
  width:80px;
}

.actions .btn-ghost:hover {
  background: var(--blue-light);
  color: white;
}

/* LOGIN LINK */
.login-link {
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  margin-top: 12px;
}

.login-link a {
  color: var(--blue);
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* PASSWORD TOGGLE */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
  color: var(--gray);
}

/* RESPONSIVE */
@media (max-width: 500px) {
  main {
    padding: 20px;
  }

  .row {
    flex-direction: column;
  }

  .file-input {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }

  .file-input .file-label {
    padding: 8px 16px;
    font-size: 14px;
    margin-top: 30px;
  }

  .actions {
    flex-direction: row;
  }

  .actions button {
    width: 100%;
  }
}
