:root {
    --bg: #000000;
    --text: #ffffff;
    --link: #25d366;
    --card: #111111;
    --border: #2a2a2a;
    --danger: #ff4d4f;
    --success: #2ecc71;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.site-header,
.site-footer {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--border);
    border-bottom: none;
    margin-top: 24px;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.login-logo {
    width: 140px;
    max-width: 70%;
    height: auto;
    display: block;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    border-bottom: none;
    padding-bottom: 0;
}

.auth-header .login-logo {
    margin: 0 auto;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container .card {
    width: 100%;
    max-width: 460px;
}

/* Layout con menú vertical */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #090909;
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-height: 100vh;
}

.logo-gym {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--text);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0f0f0f;
    color: var(--link);
    text-decoration: none;
}

.sidebar nav a:hover {
    background: #151515;
    text-decoration: none;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.main-content .container {
    max-width: 980px;
    margin: 20px auto;
    padding: 0 12px;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 980px;
    margin: 20px auto;
    padding: 0 12px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.form-grid {
    display: grid;
    gap: 10px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

input,
button,
select,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0a0a0a;
    color: var(--text);
}

button {
    background: var(--link);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.alert.error {
    background: rgba(255, 77, 79, 0.2);
    border: 1px solid var(--danger);
}

.alert.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid var(--success);
}

.muted {
    color: #c7c7c7;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

@media (max-width: 900px) {
    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

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

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .sidebar nav a {
        width: auto;
    }
}

@media (max-width: 600px) {
    .sidebar nav {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
    }

    .sidebar nav a {
        width: 100%;
    }

    .site-header h1 {
        font-size: 1.2rem;
    }

    .card {
        padding: 12px;
    }
}

