/* ===== MASTER STYLES FOR DERSAL.AZ ===== */
:root {
  --accent: #4db8ff;
  --accent-2: #80d4ff;
  --ring: rgba(77,184,255,.35);
  --radius: 12px;
  --bg: #1a1f2e;
  --panel: #242b3d;
  --text: #f0f4f8;
  --muted: #b8c5d1;
  --border: #2d3548;
  --panel-2: #1f2635;
  --chip: #1e2332;
  --ghost: #1c2333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.form-wrapper {
  background: var(--panel);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.header p {
  color: var(--muted);
  font-size: 16px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(77,184,255,0.4);
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--chip);
  transform: translateY(-1px);
}

/* ===== PASSWORD TOGGLE ===== */
.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.password-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* ===== MESSAGES ===== */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 15px 0;
  text-align: center;
  font-weight: 500;
}

.message-success {
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
}

.message-error {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
}

.message-info {
  background: rgba(77,184,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(77,184,255,0.3);
}

/* ===== LINKS ===== */
.link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.link:hover {
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

/* ===== HOME BUTTON ===== */
.home-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(77,184,255,0.4);
}

/* ===== FOOTER LINKS ===== */
.footer-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .form-wrapper {
    padding: 30px 20px;
  }
  
  body {
    padding: 15px;
  }
  
  .home-btn {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 20px;
    display: inline-block;
  }
}
