:root {
    --primary: #f6ead4;         /* off-white for headings */
    --accent: #c9a44f;          /* gold accent */
    --bg: #232323;              /* charcoal */
    --text: #ececec;            /* off-white main text */
    --muted: #b0b0b0;           /* muted text */
}
html, body {
    min-height: 100%;
}
body {
    font-family: 'Forum', 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    background-image: url('../images/black-parchment-paper-texture.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    letter-spacing: 0.01em;
}
header, section, footer {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.content-box header {
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
}
.content-box section {
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto 2rem auto;
}
.content-box section:last-child {
    margin-bottom: 0;
}
header {
    padding-bottom: 0.5rem;
}
.content-box {
    background: rgba(35, 35, 35, 0.8);
    border-radius: 0;
    max-width: 800px;
    margin: 100px auto 0;
    padding: 2rem;
}
.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.logo-row img {
    height: 600px;
    width: auto;
    display: block;
    border-radius: 6px;
    background: transparent;
}
h1, h2, h3 {
    font-weight: 700;
    color: var(--primary);
    font-family: 'Forum', 'Georgia', 'Times New Roman', serif;
    margin-bottom: 0.3em;
}
h1 {
    font-size: 2.7rem;
    letter-spacing: 0.04em;
}
h2 {
    font-size: 1.55rem;
    letter-spacing: 0.03em;
}
.hero {
    background: transparent;
    border-radius: 14px;
    box-shadow: none;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero h1 {
    text-transform: uppercase;
    margin-bottom: 0.1em;
    font-weight: 700;
    font-size: 3.2rem;
    letter-spacing: 0.05em;
    line-height: 0.9;
    display: block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 25%, #d4af37 50%, #b8941f 75%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0.5px 0.5px 0.5px rgba(0, 0, 0, 0.2));
}
.hero h2 {
    margin-top: 0;
}
section {
    background: transparent;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: none;
}
form {
    display: grid;
    gap: 1.15rem;
    margin-top: 2rem;
}
.success-message {
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    background: rgba(201, 164, 79, 0.1);
    border: 1.5px solid var(--accent);
    border-radius: 5px;
}
.success-message p {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
label {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
input, textarea {
    width: 100%;
    padding: 0.9rem;
    background: #191919;
    border: 1.5px solid #393939;
    border-radius: 5px;
    font-size: 1.07rem;
    color: var(--text);
    font-family: inherit;
    transition: border 0.2s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #232323;
}
button {
    background: linear-gradient(135deg, #d4b85a 0%, #c9a44f 30%, #b8943f 60%, #a8822f 100%);
    color: #181818;
    border: none;
    padding: 1rem 2.4rem;
    font-size: 1.09rem;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 1px 4px rgba(200,164,79,0.07), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: background 0.15s, color 0.15s, box-shadow 0.14s;
}
button:hover {
    background: linear-gradient(135deg, #c9a44f 0%, #b8943f 30%, #a8822f 60%, #8a7325 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200,164,79,0.18), inset 0 1px 0 rgba(255,255,255,0.15);
}
footer {
    background: transparent;
    color: var(--muted);
    text-align: center;
    border-radius: 0 0 10px 10px;
    font-size: 0.97rem;
    padding: 1.3rem 2rem;
    margin-top: 2rem;
    box-shadow: none;
}
@media (max-width: 900px) {
    .hero h1 {
        line-height: 0.75;
    }
}
@media (max-width: 600px) {
    header, section, footer {
        padding: 1rem;
    }
    .hero {
        padding: 2.2rem 1rem;
    }
    .hero h1 {
        line-height: 0.75;
    }
    .logo-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .logo-row img {
        height: 400px;
    }
}

/* Login Page Styles */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}
.login-card {
    background: rgba(35, 35, 35, 0.8);
    border-radius: 0;
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    margin: 0 auto;
}
.login-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}
.login-card .logo h1 {
    text-transform: uppercase;
    margin-bottom: 0.1em;
    font-weight: 700;
    font-size: 3.2rem;
    letter-spacing: 0.05em;
    line-height: 0.9;
    display: block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 25%, #d4af37 50%, #b8941f 75%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0.5px 0.5px 0.5px rgba(0, 0, 0, 0.2));
}
.error-message {
    background: rgba(200, 50, 50, 0.2);
    border: 1.5px solid rgba(200, 50, 50, 0.5);
    color: #ff6b6b;
    padding: 0.9rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
}
input[type="password"] {
    width: 100%;
    padding: 0.9rem;
    background: #191919;
    border: 1.5px solid #393939;
    border-radius: 5px;
    font-size: 1.07rem;
    color: var(--text);
    font-family: inherit;
    transition: border 0.2s;
    box-sizing: border-box;
}
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
    background: #232323;
}
input[type="password"]::placeholder {
    color: var(--muted);
    opacity: 0.7;
}
input[type="hidden"] {
    display: none;
}
.login-card form button {
    width: 33.333%;
    margin: 0 auto;
    display: block;
    text-align: center;
}
@media (max-width: 600px) {
    body.login-page {
        padding: 1rem;
    }
    .login-card {
        padding: 1rem;
        max-width: calc(100% - 2rem);
        box-sizing: border-box;
    }
    .login-card form {
        width: 100%;
        box-sizing: border-box;
    }
    input[type="password"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.8rem;
    }
    .login-card .logo h1 {
        font-size: 2.5rem;
        line-height: 0.75;
    }
    .login-card form button {
        width: 33.333%;
        margin: 0 auto;
        display: block;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
}
