/* stashhub login — minimal, modern, hub-purple accent.
   This file ships as-is in the binary alongside login.html. The React bundle
   CSS isn't loaded on /login, so anything here is the only source of truth. */

:root {
    --color-bg: #000;
    --color-card: rgba(20, 20, 22, 0.55);
    --color-card-border: rgba(255, 255, 255, 0.08);
    --color-text: #c6c6c6;
    --color-text-strong: #fff;
    --color-hubs: #df73ff;
    --color-error: #ff6b88;
}

* { box-sizing: border-box; }
html { font-size: 14px; }

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
    height: 100vh;
}

/* The full-viewport centring wrapper */
.dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 0 16px;
    margin: 0;
}

/* The card is just a small centered column — no chrome */
.card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 220px;
}

/* Labels are hidden — fields use the placeholder text */
label,
.form-group label,
.form-group h6 {
    display: none;
}

.form-group {
    margin-bottom: 10px;
}

button, input {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Inputs — pill, glassy dark, hub-purple focus ring */
.form-control,
.text-input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-strong);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    outline: 0;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control::placeholder,
.text-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.form-control:focus,
.text-input:focus {
    border-color: var(--color-hubs);
    box-shadow: 0 0 0 3px rgba(223, 115, 255, 0.25);
}

/* Submit button — full-width hub-purple pill, black text */
.btn,
.btn-primary,
input[type="submit"].btn,
input[type="submit"].btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    background-color: var(--color-hubs);
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    cursor: pointer;
    margin-top: 6px;
    transition: filter 0.15s ease, transform 0.05s ease;
}
.btn:hover,
.btn-primary:hover,
input[type="submit"]:hover {
    filter: brightness(1.08);
}
.btn:active,
.btn-primary:active,
input[type="submit"]:active {
    transform: translateY(1px);
}

/* Error — collapse cleanly when the template injected an empty string,
   otherwise show a small red line above the fields. */
.login-error {
    color: var(--color-error);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    padding: 0;
    margin: 0 0 8px 0;
    min-height: 0;
}
.login-error:empty {
    display: none;
}

/* No mobile override. The card stays at 220px and the dialog stays
   vertically + horizontally centred on every viewport. */
