:root {
    --page-background: #ffffff;
    --panel: #f7f7f7;
    --input: #ffffff;
    --orange: #ff7100;
    --orange-light: #ff8a2a;
    --text: #2a2928;
    --muted: #666666;
    --border: #c8c8c8;
}

/* Reset */
* {
    box-sizing: border-box;
}

/* Center the complete page */
body {
    min-height: 100vh;
    margin: 0;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--page-background);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

/* Main form area */
.container {
    width: 100%;
    max-width: 610px;
    margin: 0 auto;
}

/* Heading */
.page-header {
    margin-bottom: 18px;
    text-align: center;
}

h1 {
    margin: 0;
    color: var(--orange);
    font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.05;
}

.page-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 16px;
}

/* Form panel */
form {
    padding: 22px;
    background: var(--panel);
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(42, 41, 40, 0.1);
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

/* Password label and character counter */
.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.password-label-row label {
    margin-bottom: 6px;
}

#character-count {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

/* Input fields */
input[type="email"],
input[type="password"] {
    display: block;
    width: 100%;
    height: 43px;
    padding: 9px 12px;
    background: var(--input);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 113, 0, 0.16);
}

input::placeholder {
    color: #888888;
}

/* Helper text */
.helper-text {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* Submit button */
button {
    width: 100%;
    min-height: 44px;
    padding: 9px 16px;
    background: var(--orange);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

button:hover {
    background: var(--orange-light);
}

button:active {
    transform: scale(0.99);
}

button:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

/* Small centered logo/banner at the bottom */
.art-banner {
    width: min(100%, 330px);
    height: 70px;
    margin: 24px auto 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
}

.art-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Modal */
.message-modal {
    width: min(calc(100% - 32px), 430px);
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    overflow: visible;
}

.message-modal::backdrop {
    background: rgba(42, 41, 40, 0.45);
    backdrop-filter: blur(2px);
}

.modal-content {
    padding: 22px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(42, 41, 40, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.modal-header h2 {
    margin: 0;
    color: var(--orange);
    font-family: "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
    font-size: 21px;
    font-weight: 600;
}

.modal-close {
    width: 34px;
    min-height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted);
    border: none;
    border-radius: 6px;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

.modal-close:hover {
    background: #e9e9e9;
    color: var(--text);
}

.modal-close:active {
    transform: none;
}

#modal-message {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.modal-ok {
    width: 100%;
}

/* Smaller screens */
@media (max-width: 600px) {
    body {
        justify-content: flex-start;
        padding: 20px 12px;
    }

    .container {
        max-width: 100%;
    }

    h1 {
        font-size: 36px;
    }

    form {
        padding: 18px;
    }

    .art-banner {
        width: 280px;
        height: 60px;
        margin-top: 20px;
    }
}
