﻿html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
}

.login-page {
    min-height: 100vh;
    background: #f3f3f1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.login-panel {
    width: 100%;
    max-width: 440px;
    background: #fff;
    padding: 42px 48px 46px;
    box-sizing: border-box;
    border: 1px solid #ddd;
}

.login-logo {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 26px;
}

.login-title {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 34px;
}

.login-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 15px;
        font-weight: 600;
    }

.form-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #aaa;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 16px;
    background: #fff;
}

    .form-input:focus {
        outline: 2px solid #555;
        outline-offset: 1px;
    }

.forgot-password {
    margin-top: -8px;
    margin-bottom: 24px;
    text-align: right;
}

    .forgot-password a {
        color: #333;
        font-size: 14px;
    }

.primary-button {
    width: 100%;
    border: 0;
    padding: 12px 20px;
    background: #333;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

    .primary-button:hover {
        background: #111;
    }

.login-message {
    display: block;
    margin-top: 22px;
    text-align: center;
    color: #8b0000;
    font-size: 15px;
    font-weight: 600;
}

.login-user-name {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}

.login-instruction {
    text-align: center;
    line-height: 1.5;
    margin-bottom: 22px;
}

.code-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 6px;
}

.qr-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code {
    width: 200px;
    height: 200px;
}

.setup-key {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14px;
}

.admin-page {
    margin: 0;
    min-height: 100vh;
    background: #f3f3f1;
}

.admin-header {
    min-height: 86px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    box-sizing: border-box;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.admin-logo {
    width: 250px;
    height: auto;
}

.admin-system-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-user-name {
    font-size: 14px;
}

.admin-logout {
    color: #333;
    font-size: 14px;
}

.admin-nav {
    background: #333;
    padding: 0 36px;
}

    .admin-nav a {
        display: inline-block;
        padding: 13px 20px;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

        .admin-nav a:hover {
            background: #111;
        }

.admin-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px 36px;
    box-sizing: border-box;
}

.register-heading {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 24px;
}

.register-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

    .register-table th {
        text-align: left;
        padding: 12px 14px;
        background: #333;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
    }

    .register-table td {
        padding: 11px 14px;
        border-bottom: 1px solid #ddd;
        font-size: 14px;
        vertical-align: top;
    }

    .register-table tbody tr:hover {
        background: #f4f4f2;
    }

.register-empty {
    display: block;
    padding: 30px;
    background: #fff;
    text-align: center;
}

.register-actions-heading,
.register-actions-cell {
    width: 42px;
    text-align: center;
}

.register-actions {
    position: relative;
}

    .register-actions summary {
        list-style: none;
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
        padding: 4px 8px;
        user-select: none;
    }

        .register-actions summary::-webkit-details-marker {
            display: none;
        }

.register-actions-menu {
    position: absolute;
    right: 0;
    top: 28px;
    min-width: 140px;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 100;
    text-align: left;
}

    .register-actions-menu a {
        display: block;
        padding: 9px 12px;
        color: #222;
        text-decoration: none;
        white-space: nowrap;
    }

        .register-actions-menu a:hover {
            background: #f3f3f1;
        }

.member-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.member-name {
    display: block;
    font-size: 27px;
    font-weight: 600;
}

.secondary-button {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #777;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .secondary-button:hover {
        background: #f3f3f1;
    }

.member-section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 24px;
    margin-bottom: 24px;
}

.member-section-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
}

.member-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 22px 36px;
}

.member-field-full {
    grid-column: 1 / -1;
}

.member-field-label {
    margin-bottom: 4px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.member-about {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #ccc;
    background: #f8f8f7;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.member-history-table {
    width: 100%;
    border-collapse: collapse;
}

    .member-history-table th {
        padding: 10px 12px;
        text-align: left;
        border-bottom: 2px solid #ccc;
        font-size: 13px;
    }

    .member-history-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #ddd;
        font-size: 14px;
    }

.member-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .member-section-heading .member-section-title {
        margin-bottom: 0;
    }

.member-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #aaa;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
}

.member-edit-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.small-button,
.primary-small-button {
    padding: 8px 16px;
    border: 1px solid #777;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.small-button {
    background: #fff;
    color: #222;
}

.primary-small-button {
    background: #333;
    color: #fff;
    border-color: #333;
}

.manual-payment-panel {
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #ccc;
    background: #f8f8f7;
}

.password-wrapper {
    position: relative;
}

.password-input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}