/* ===== Common / base ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e3a5f;
    margin: 0;
    min-height: 100vh;
    padding: 20px;
}

/* Forma page: centered flex layout */
body.page-forma {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Forma page: back link ===== */
.back-link {
    align-self: flex-start;
    margin-bottom: 24px;
    color: #4ade80;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #86efac;
    text-decoration: underline;
}

/* ===== Forma page: login/signup cards ===== */
.forms-wrapper {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.form-card h2 {
    color: #374151;
    margin: 0 0 8px 0;
    font-size: 24px;
}

.form-card .subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #22c55e;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #16a34a;
}

.legal-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 16px;
    line-height: 1.5;
}

.legal-text a {
    color: #6366f1;
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

.switch-form {
    margin-top: 20px;
    font-size: 14px;
    color: #374151;
}

.switch-form a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
}

.switch-form a:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .forms-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Index page: container ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.container h1 {
    color: #374151;
    text-align: center;
    margin-top: 0;
}

.container h2 {
    color: #16a34a;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 6px;
}

.container h3,
.container h4 {
    color: #374151;
}

.container p {
    font-size: 16px;
    color: #374151;
}

.intro {
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
}

/* ===== Index page: nav ===== */
nav {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

nav a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: #16a34a;
    text-decoration: underline;
}

/* ===== Index page: content ===== */
.container img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.container a {
    color: #6366f1;
    text-decoration: none;
}

.container a:hover {
    text-decoration: underline;
}

.container table {
    border-collapse: collapse;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.container td,
.container th {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
}

.container th {
    background-color: #f0fdf4;
    color: #166534;
}

.highlight {
    background-color: #fef08a;
}

.small-text {
    font-size: 12px;
}

.deleted {
    text-decoration: line-through;
}

.video-container,
.audio-container {
    margin: 10px 0;
}

.container section {
    margin-bottom: 32px;
}

.quick-form .submit-btn {
    background-color: #22c55e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
}

.quick-form .submit-btn:hover {
    background-color: #16a34a;
}

.quick-form input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-right: 8px;
}

.container footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}
