:root {
    --primary-color: #0070f3;
    --background-color: #000;
    --text-color: #fff;
    --border-color: #333;
    --hover-color: #0051a2;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    padding-bottom: 100px; /* Space for footer */
    width: 100%;
    position: relative;
    min-height: 100vh;
}

header {
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background-color: var(--border-color);
}

.nav-links a.active {
    /* Removed blue background - keeping text style only */
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed from center to flex-start */
    padding: 1rem;
    min-height: calc(100vh - 180px); /* Adjusted to account for header and footer */
}

.auth-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.divider {
    text-align: center;
    position: relative;
    margin: 0.5rem 0;
}

input {
    width: 100%;
    padding: 0.75rem;
    margin: 0.25rem 0;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 0.75rem;
    margin: 0.25rem 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

button:hover {
    background-color: var(--hover-color);
}

.beta-banner {
    position: absolute;
    top: 0px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translate(30px, 15px) rotate(40deg);
    pointer-events: none;
    z-index: 20;
}

@media screen and (max-width: 768px) {
    .beta-banner {
        font-size: 0.7rem;
        padding: 3px 15px;
    }
}

/* New styles for about page */
.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: left;
    color: var(--text-color);
}

.content-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: left;
}

.text-container {
    text-align: left;
    max-width: 100%;
}

.text-container p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
}

.cta-container {
    margin-top: 2rem;
    text-align: left;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: var(--hover-color);
}

/* Additional styles for legal pages */
.text-container ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style-type: disc;
}

.text-container ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    opacity: 0.9;
}

.text-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.text-container a:hover {
    opacity: 0.8;
}

/* Adjust spacing between major sections */
.content-section + .content-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.copy-token-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 20px !important;
    min-width: 20px !important;
    margin-left: 0;
}

.token-label {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
}

.tunnel-card {
    position: relative;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.install-tunnel-btn {
    margin-top: auto;
}

/* Add some specific spacing for the login sections */
.login-section {
    margin-bottom: 1rem;
}

.create-account-section {
    margin-top: 0.5rem;
}

/* Adjust the "or" text spacing */
.or-text {
    margin: 0.5rem 0;
    color: var(--text-color);
    opacity: 0.7;
}

footer {
    flex-shrink: 0;
    background: var(--bg-color);
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative; /* Changed from fixed */
    bottom: 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}