* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent scrollbars from the canvas */
}

body {
    background-color: #000015;
    color: #333;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind all other content */
}

.header {
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;       
    font-size: 1.1rem;
}

a {
    color: azure;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.login-box {
    width: 450px;
    max-width: 90%;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.input-group {
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-button:hover {
    background-color: #2980b9;
}

.connect-section {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: #777;
    margin: 0.5rem 0;
}

.google-login-btn {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    background-color: #fff;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.google-login-btn:hover {
    background-color: #f5f5f5;
}

.google-logo {
    width: 20px;
    height: 20px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2em;
}

#dashboard-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
    z-index: 1;
}

.dashboard-box {
    width: 500px;
    max-width: 90%;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    text-align: center;
}

.dashboard-box h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.dashboard-box p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    word-break: break-all;
}

.dashboard-box #logout-button {
    margin-top: 1rem;
    background-color: #e74c3c;
}

.dashboard-box #logout-button:hover {
    background-color: #c0392b;
}