/*
 * Copyright (c) 2026, MariaDB plc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, version 2.0,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
 * the GNU General Public License, version 2.0, for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 */

/* The MCP server's sign-in page (lib/oauth_builtin.py). The Keycloak theme in
   keycloak-theme/ carries a byte-identical copy. */
:root{--body-background:hsl(240,5%,91%);--body-text-color:hsl(240,5%,12%);
--logo-color:#003545;--textLink-foreground:hsl(200,65%,34%);
--primary-text-color:#333;--secondary-text-color:#adadad;--focus-color:hsl(200,65%,70%);
--error-color:hsl(0,100%,70%);--error-text-color:#500}
@media (prefers-color-scheme:dark){:root{--body-background:hsl(0,0%,17%);--logo-color:#fff;
--body-text-color:hsl(0,0%,75%);--textLink-foreground:hsl(200,65%,54%);
--primary-text-color:#c4c4c4;--secondary-text-color:#595959;--focus-color:hsl(200,65%,30%);
--error-color:hsl(0,100%,20%);--error-text-color:#e00}}
body,html{width:100%;min-height:100%;height:100%}
*{margin:0;padding:0}
body{background-color:var(--body-background);
font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;
color:var(--body-text-color)}
h2{margin:40px 0 5px 0;font-weight:400;font-size:33px}
p{line-height:19px;font-weight:200;font-size:15px}
#root{display:flex;box-sizing:border-box;min-height:100%;padding:0 16px 40px;
flex-direction:column;align-items:center;justify-content:center;position:relative}
.welcomeLogo{margin-top:20px;margin-bottom:16px;width:204px;height:168px;min-height:168px}
.welcomeLogo svg{width:100%;height:100%}
.welcomeLogo path{fill:var(--logo-color)}
.welcomeText{display:flex;flex-direction:column;align-items:center;justify-content:center}
.welcomeText p{text-align:center;max-width:400px}
.welcomeLinks{padding:30px 0}
.welcomeLinks a{color:var(--textLink-foreground);text-decoration:none;font-weight:500;padding:0 20px;
font-size:15px}
.welcomeSpacer{height:80px}
.footer{position:absolute;bottom:0;line-height:12pt;font-weight:200;font-size:10px;margin:5px 0}
.mrsLogin{display:flex;flex-direction:column;padding-top:20px;padding-bottom:20px;gap:12px;
align-items:center}
.mrsLogin>p{font-size:20px;font-weight:400;margin-top:38px}
.mrsLoginIntro{max-width:300px;text-align:center;line-height:19px;font-weight:200;
font-size:15px}
.mrsLoginIntro strong{font-weight:500}
.mrsLoginFields{display:flex;flex-direction:column}
.mrsLoginScopes{border:none;margin:0 0 16px;font-size:14px;font-weight:200}
.mrsLoginScopes legend{font-weight:400;margin-bottom:6px}
.mrsLoginScopes label{display:flex;align-items:center;gap:8px;margin:4px 0}
input[type=checkbox]{margin:0}
.mrsLoginFields input[type=password],.mrsLoginFields input[type=text],.mrsLoginFields select
{border:none;outline:0;background-color:transparent;color:var(--primary-text-color);
font-size:17px;font-weight:300;width:250px;flex:1 1 250px;min-width:0;
font-family:inherit}
.mrsLoginField{display:flex;flex-direction:row;border:1px solid var(--secondary-text-color);
padding:8px 8px 8px 16px}
.mrsLoginField:first-of-type{border-top-left-radius:5px;border-top-right-radius:5px}
.mrsLoginField:last-of-type:not(:only-of-type){border-top:0}
.mrsLoginField:last-of-type{border-bottom-left-radius:5px;border-bottom-right-radius:5px;
margin-bottom:16px}
.mrsLoginField input,.mrsLoginField select{height:26px}
.mrsLoginField:focus-within{border-color:var(--focus-color)}
.mrsLoginBtnNext{border:1px solid var(--secondary-text-color);border-radius:50%;width:24px;
height:24px;min-width:24px;margin-left:12px;padding:0;background:transparent;
cursor:pointer;display:block;line-height:0;text-align:left;align-self:center;box-sizing:content-box;
-webkit-appearance:none;appearance:none;font:inherit;color:inherit;box-shadow:none}
.mrsLoginBtnNext svg{display:block;width:24px;height:24px;fill:none;
stroke:var(--secondary-text-color);stroke-width:3;stroke-linejoin:miter}
.mrsLoginField:has(input:not(:placeholder-shown)) .mrsLoginBtnNext{
border:1px solid var(--primary-text-color)}
.mrsLoginField:has(input:not(:placeholder-shown)) .mrsLoginBtnNext svg{
stroke:var(--primary-text-color)}
.mrsLoginBtnNext:focus-visible{outline:2px solid var(--focus-color);outline-offset:2px}
.mrsLoginError{background-color:var(--error-color);box-shadow:rgb(0 0 0 / 10%) 0 5px 10px 2px;
width:220px;padding:8px 20px;border:1px solid var(--error-text-color);border-radius:6px;
overflow-wrap:break-word;position:relative}
.mrsLoginError p{color:var(--error-text-color);font-size:14px;text-align:center}
.mrsLoginError:before{width:15px;height:15px;background-color:var(--error-color);content:"";
position:absolute;left:50%;top:0;margin-top:-9px;margin-left:-8px;
transform:rotate(135deg) skewX(5deg) skewY(5deg);border-left:1px solid var(--error-text-color);
border-bottom:1px solid var(--error-text-color)}
.mrsLoginSeparator{background:linear-gradient(to right,rgba(200,200,200,0),#c8c8c8,#c8c8c8,
rgba(200,200,200,0));width:400px;max-width:100%;height:1px;margin-top:20px}
