/* ============================================================
   Modern Responsive Login & General Styles (SongApp)
   Compatible with PHP 5.6 / XAMPP
   ============================================================ */

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: #0f172a;
  background: linear-gradient(180deg, #e6ffef 0%, #f4f7f9 60%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* --------------------- Top Bar --------------------- */
.topbar {
  background: linear-gradient(90deg, #16a34a, #059669);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .small {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9em;
  text-decoration: none;
}

.topbar .small:hover {
  text-decoration: underline;
}

/* --------------------- Main Center Box --------------------- */
.centerbox {
  max-width: 420px;
  margin: 8vh auto;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #fbfffb);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
  border: 1px solid rgba(2, 6, 23, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.centerbox:hover {
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.12);
  transform: translateY(-2px);
}

/* --------------------- Logo --------------------- */
.logo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.18);
  user-select: none;
}

/* --------------------- Titles --------------------- */
.centerbox h2 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 20px;
  color: #073642;
}

.centerbox p.lead {
  margin: 0 0 16px;
  text-align: center;
  color: #475569;
  font-size: 14px;
}

/* --------------------- Form Elements --------------------- */
form {
  margin-top: 6px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #475569;
  font-size: 13px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e6eef0;
  background: #fff;
  margin-top: 6px;
  box-shadow: inset 0 1px 0 rgba(16, 24, 32, 0.02);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  outline: none;
}

/* --------------------- Buttons --------------------- */
.button {
  width: 100%;
  display: inline-block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
}

.button:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #059669, #047857);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
}

/* --------------------- Links & Helpers --------------------- */
.smalllink {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #065f46;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.smalllink:hover {
  text-decoration: underline;
  color: #047857;
}

.helper {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
}

/* --------------------- Alerts --------------------- */
.error {
  background: #ffefef;
  color: #9b1c1c;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
}

.success {
  background: #ecfdf5;
  color: #065f46;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
}

/* --------------------- Cards & Tables --------------------- */
.card {
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
}

.list {
  padding-left: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th, .table td {
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

/* --------------------- Responsive --------------------- */
@media (max-width: 600px) {
  body {
    padding: 0 10px;
  }
  .centerbox {
    margin: 6vh auto;
    padding: 20px;
    border-radius: 14px;
  }
  .logo {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
  .centerbox h2 {
    font-size: 18px;
  }
  .button {
    font-size: 15px;
    padding: 11px;
  }
  .input {
    font-size: 14px;
    padding: 10px 12px;
  }
}
