/* ------------------------------------------------------------------
   IDCamRemote - sign-in pages (login.html, setup.html)
   Loaded after public.css, the look the public [db]netsoft websites
   share (asphalt grey, signal yellow, Barlow). These two pages do not
   load styles.css: that is the dashboard's instrument panel, and the
   portal keeps it because it shows the same camera cards. So the few
   helpers the sign-in scripts rely on (.hidden) are defined here too.
   ------------------------------------------------------------------ */

.hidden {
    display: none !important;
}

/* public.css is written for sites that load Bootstrap; these pages do not, so the little of it they need is here */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 16px;
}

h1 {
    margin-top: 0;
}

/* the asphalt bar holds only the brand: there is nowhere else to go before signing in */
.ds-nav__brand img {
    height: 26px;
}

/* one narrow column of fields, left-aligned under the title */
.ds-signin {
    max-width: 26rem;
}

.ds-signin__intro {
    color: var(--ds-muted);
    margin-bottom: 1.75rem;
}

.ds-field {
    display: block;
    margin-bottom: 1.1rem;
}

.ds-field > span {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
}

.ds-field input[type="text"],
.ds-field input[type="password"] {
    display: block;
    width: 100%;
    padding: .65rem .8rem;
    background: var(--ds-paper);
    border: 1px solid #9aa0a5;
    border-radius: var(--ds-radius);
    color: var(--ds-text);
    font: inherit;
}

.ds-field input[type="text"]:focus,
.ds-field input[type="password"]:focus {
    outline: none;
    border-color: var(--ds-text);
    box-shadow: 0 0 0 3px var(--ds-signal);
}

.ds-field--check {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.ds-field--check > span {
    margin: 0;
    font-weight: 400;
}

.ds-field--check input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--ds-asphalt);
}

.ds-signin .ds-btn {
    width: 100%;
    margin-top: .5rem;
}

.ds-signin .ds-btn:disabled {
    opacity: .6;
    cursor: default;
}

.ds-signin__rule {
    color: var(--ds-muted);
    font-size: .9375rem;
    margin: -.25rem 0 1.25rem;
}

/* what went wrong, on concrete with a red edge */
.ds-signin .error {
    margin: 1.25rem 0 0;
    padding: .8rem 1rem;
    background: var(--ds-concrete);
    border-left: 4px solid var(--ds-off);
}

.ds-signin .hint {
    margin: 1.25rem 0 0;
    color: var(--ds-muted);
    font-size: .9375rem;
}

/* The publish date footer is substituted into every page by PageEndpoints as <footer class="site-footer">. */
.site-footer {
    background: var(--ds-asphalt);
    color: var(--ds-on-asphalt-muted);
    /* lines up with .container: 16px gutter, centred 1140px column */
    padding: 1.25rem max(16px, calc((100% - 1140px) / 2 + 16px));
    font-size: .875rem;
}
