/* The sign-in page and the owner page, in the game's own colours. One column, made for a
   phone first. No styles live in the pages themselves, so the strict policy holds. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    padding: 16px 12px 40px;
    font-size: 16px;
    line-height: 1.4;
}

.panel {
    max-width: 440px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 16px;
}

.panel.wide {
    max-width: 720px;
}

h1 {
    font-size: 1.7rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}

h2 {
    font-size: 1.15rem;
    margin: 26px 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.tagline {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 18px;
}

.small {
    font-size: 0.9rem;
    opacity: 0.9;
}

.notice {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin: 18px 0 8px;
}

#messageMore {
    text-align: center;
    margin-bottom: 16px;
}

.error {
    background: rgba(160, 30, 30, 0.85);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 12px 0;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.tab {
    flex: 1;
    min-height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: transparent;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.tab[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    font-weight: bold;
}

label {
    display: block;
    margin: 12px 0 4px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    color: #222;
    background: white;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 10px;
}

.check input {
    width: 22px;
    height: 22px;
}

.btn {
    min-height: 44px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #ffd54a;
    color: #2b2140;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn.quiet {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: normal;
}

.btn.danger {
    background: rgba(160, 30, 30, 0.85);
    color: white;
    font-weight: normal;
}

form .btn {
    width: 100%;
    margin-top: 18px;
}

#signOut {
    display: block;
    margin: 0 auto;
}

.line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 1.05rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    word-break: break-all;
}

.rows {
    list-style: none;
}

.row {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.row.off {
    opacity: 0.75;
}

.who {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(160, 30, 30, 0.85);
    font-size: 0.8rem;
    font-weight: normal;
}

.facts {
    font-size: 0.92rem;
    opacity: 0.95;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.foot {
    margin-top: 28px;
}
