body {
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

a {
    color: #58a6ff;
    text-decoration: none;
}

.login-box, .dashboard {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px; 
    width: 300px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0 24px 4px rgba(34, 197, 94, 0.5);
}

input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: #334155;
    color: white;
}

button {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: #2ea043;
}

button.connect {
    background: #2ea043;
    color: white;
}

button.disconnect {
    background: #f85149;
    color: white;
}

.logout {
    display: inline-block;
    margin-top: 20px;
    color: #58a6ff;
    text-decoration: none;
}

.error {
    color: red;
    margin-bottom: 10px;
}

header {
    text-align: center;
    padding: 30px 0;
    background: black;
    border-bottom: 1px solid black;
    margin-top: 40px;
}

nav a {
    color: #58a6ff;
    margin-left: 15px;
    text-decoration: none;
}

.hero {
    text-align: center;
    margin: 80px auto;
    max-width: 600px;
}

.hero h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #2ea043;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.features {
    text-align: center;
    margin: 60px auto;
}

.features ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.features li {
    margin: 10px 0;
}

footer {
    text-align: center;
    margin-top: 80px;
    color: #8b949e;
    font-size: 0.9em;
}

img {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: 200px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  body {
    height: auto; /* let height grow naturally */
    padding: 20px; /* add some breathing room */
  }

  .login-box, .dashboard {
    width: 100%;       /* full width on small screens */
    max-width: 400px;  /* limit max size so it’s not too wide */
    padding: 20px;     /* a bit smaller padding */
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4); /* lighter shadow */
  }

  input, button {
    width: 100%;       /* inputs and buttons stretch fully */
    font-size: 1.1rem; /* bigger font for easier tapping */
    padding: 14px;     /* bigger tappable area */
  }

  .hero h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .cta, .register {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px 0;
  }

  img {
    width: 120px;
    height: 120px;
  }

  header {
    padding: 20px 10px;
    margin-top: 20px;
  }
}
