/* General layout, forms, tables and responsive styles. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #202c31;
    background: #f6f3ed;
}

header {
    background: #fff;
    border-bottom: 1px solid #d9d5ce;
    padding: 24px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.brand {
    font-size: 23px;
    font-weight: bold;
    letter-spacing: -1px;
    color: #25434c;
}

.brand span {
    color: #ae582e;
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 5px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

a {
    color: #25434c;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    width: 88%;
    max-width: 1200px;
    min-height: 72vh;
    margin: 40px auto;
}

h1 {
    font-family: Georgia, serif;
    font-size: 44px;
    font-weight: normal;
    margin: 8px 0 15px;
    letter-spacing: -1.5px;
}

h2 {
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: normal;
    margin: 0 0 15px;
}

p {
    line-height: 1.6;
}

.eyebrow {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ae582e;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.login-layout, .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.intro {
    background: #25434c;
    color: white;
    padding: 48px;
    min-height: 380px;
}

.intro h1 {
    font-size: 64px;
}

.intro .eyebrow {
    color: #ffc398;
}

.rule {
    width: 60px;
    height: 3px;
    background: #e9a67c;
    margin: 25px 0;
}

.panel {
    background: white;
    border: 1px solid #e2ded5;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    min-width: 0;
}

.login {
    padding: 42px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 12px 0 6px;
}

input, textarea, select {
    width: 100%;
    font: inherit;
    border: 1px solid #c7cbc7;
    padding: 10px;
    border-radius: 4px;
    background: white;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

button {
    background: #25434c;
    color: white;
    border: 0;
    border-radius: 4px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    margin: 12px 3px 0 0;
}

button:hover {
    background: #345b65;
}

button.danger {
    background: #a44932;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.club-card {
    border-top: 4px solid #ae582e;
}

.stat {
    display: block;
    background: white;
    padding: 24px;
    border: 1px solid #e2ded5;
    border-radius: 6px;
}

.stat strong {
    display: block;
    font: 45px Georgia, serif;
    margin-bottom: 12px;
    color: #ae582e;
}

.message {
    padding: 13px 16px;
    background: #e7eee9;
    border-left: 4px solid #25434c;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2ded5;
    vertical-align: top;
}

th {
    background: #f6f3ed;
}

td small {
    display: block;
    color: #626969;
    margin-top: 6px;
}

.inline {
    display: inline;
}

.status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    background: #f9e7c5;
    color: #694a11;
}

.Accepted {
    background: #dcebe2;
    color: #205739;
}

.Rejected {
    background: #f7ded8;
    color: #923e2e;
}

.news-form {
    max-width: 690px;
}

footer {
    border-top: 1px solid #d9d5ce;
    padding: 20px 6%;
    color: #666;
    font-size: 13px;
}

@media (max-width: 760px) {
    .login-layout, .split {
        grid-template-columns: 1fr;
    }
    .intro {
        min-height: auto;
        padding: 30px;
    }
    .intro h1 {
        font-size: 46px;
    }
    h1 {
        font-size: 36px;
    }
    main {
        width: 92%;
    }
    nav {
        gap: 12px;
    }
}

.check-label input {
    width: auto;
    margin-right: 5px;
}

#clubSearch {
    max-width: 420px;
}

/* Keep the logout form consistent with navigation links. */
nav form {
    margin: 0;
}

.logout-link, .logout-link:hover {
    color: #25434c;
    background: none;
    padding: 0;
    margin: 0;
}

.logout-link:hover {
    text-decoration: underline;
}
