/* Nextcloud guest theme (self-hosted copy, no external resources) */
:root {
    --nc-blue: #0082c9;
    --nc-blue-dark: #006da8;
    --nc-text: #222222;
    --nc-text-muted: #6b6b6b;
    --nc-border: #d8d8d8;
    --nc-bg: #f6f6f6;
    --nc-error-bg: #fbe9e9;
    --nc-error-border: #d9a7a7;
    --nc-error-text: #8a1f1f;
    --nc-radius: 8px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--nc-bg);
    color: var(--nc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

#body-login {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 24px;
}

.login-header { margin-bottom: 24px; }

.logo { display: block; height: 40px; width: auto; }

.login-card {
    width: 100%;
    max-width: 360px;
    padding: 32px 40px 24px;
    background: #ffffff;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

h1 {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.field { margin: 0 0 18px; }

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: var(--nc-text);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font: inherit;
    font-size: 15px;
    color: var(--nc-text);
    background: #ffffff;
    border: 1px solid var(--nc-border);
    border-radius: 4px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--nc-blue);
    box-shadow: 0 0 0 2px rgba(0, 130, 201, .18);
}

.field-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.field-remember label {
    margin: 0;
    font-size: 14px;
    color: var(--nc-text-muted);
}

input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--nc-blue);
}

button.primary {
    width: 100%;
    height: 44px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--nc-blue);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .15s ease;
}

button.primary:hover { background: var(--nc-blue-dark); }
button.primary:disabled { opacity: .7; cursor: default; }

.error {
    margin: 0 0 18px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--nc-error-text);
    background: var(--nc-error-bg);
    border: 1px solid var(--nc-error-border);
    border-radius: 4px;
}

.lost-password { margin: 4px 0 0; text-align: center; font-size: 14px; }

a { color: var(--nc-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.login-footer {
    width: 100%;
    max-width: 360px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--nc-text-muted);
    text-align: center;
}

.login-footer p { margin: 0 0 8px; }
.login-footer a { color: var(--nc-text-muted); }
.login-footer .sep { margin: 0 6px; }

.footer-lang select {
    padding: 2px 4px;
    font: inherit;
    font-size: 13px;
    color: var(--nc-text-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.footer-brand { margin-top: 6px; font-size: 12px; opacity: .75; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    #body-login { padding-top: 32px; }
    .login-card { padding: 26px 22px 20px; }
    input[type="text"], input[type="password"], button.primary { height: 46px; font-size: 16px; }
}
