/*!
 * FileMaker WebDirect Custom Homepage by Harlow Technologies Inc.
 * http://www.harlowtech.com/
 *
 * Copyright (c) 2016-2020 Harlow Technologies Inc.
 * Released under the MIT license
 * https://github.com/bharlow/fm-webdirect-custom/blob/master/LICENSE.txt
 *
 * FileMaker is a trademark of FileMaker, Inc., registered in the U.S.and other countries. FileMaker WebDirect is a trademark of FileMaker, Inc.
 * Bower: Browser Detection (https://github.com/lancedikson/bowser) is licensed under the MIT license.
 *
 * Date: 2020-07-11 10:00 PST
 * Version: 2.6
 */

/* Base Styles */
body { 
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    background-color: rgb(31, 33, 34); /* Dark canvas to match logo background */
    color: #f1f1f1; /* High-contrast text on dark */
    margin: 50px;
    padding: 16px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
}
html, body { overflow: hidden; }
td { 
    text-align: center; 
}
a.button {
    background-color: rgb(227, 201, 68);
    border: none;
    border-radius: 5px;
    color: #111;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;    
    height: 50px;
    line-height: 50px;
    margin: 10px auto;
    text-decoration: none;
    width: 200px;
    text-align: center;
    transition: background 0.3s ease;
}
a.button:hover { 
    background: #a87800; 
}
/* Small link styling */
a.link {
    color: #e2c44b;
    text-decoration: none;
}
a.link:hover { text-decoration: underline; }

/* Form Styles */
.login-form {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    background: #161819; /* Near-black card */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2a2d2f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.login-form fieldset {
    border: none;
    padding: 0;
}
.login-form fieldset legend {
    font-weight: bold;
    text-align: left;
    font-size: 24px;
    margin-bottom: 10px;
    background-color: rgb(227, 201, 68);
}
.login-form .row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.login-form .row label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #f1f1f1;
}
.login-form .row input.field {
    border: 1px solid #3a3f43;
    border-radius: 5px;
    font-size: 16px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    background: #202326;
    color: #f1f1f1;
}
.login-form .row input.field::placeholder {
    color: #a0a6ab;
}
.login-form .row input.field:focus {
    outline: none;
    background-color: rgba(227, 200, 68, 0.327);
    box-shadow: 0 0 0 3px rgba(206, 156, 18, 0.25);
}
.login-form .row input.button {
    background-color: rgb(227, 201, 68);
    border: none;
    color: #111;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.login-form .row input.button:hover {
    background: #a87800;
}
.logo {
    max-width: 350px;
    max-height: 250px;
    width: auto;
    height: auto;
}
.logo-container {
    padding-top: 0;
    padding-bottom: 20px;
    text-align: center;
}
.logo-container img {
    max-width: 420px;
    height: auto;
    filter: none; /* keep logo edges blended with background */
    border: none;
    outline: none;
    box-shadow: none;
}
.tagline {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f1f1f1;
    text-transform: uppercase;
}
/* Browser Check */
#browserInvalid,
#browserValid,
#browserError { 
    display: none;
}

/* Browser Invalid Error Styling */
.browserInvalid td {
    background: #2a1f1f;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.browserInvalid td p:first-child {
    color: #ff5252;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.browserInvalid td p {
    color: #ffcdd2;
    margin: 10px 0;
}

.browserInvalid td #browser-version {
    color: #ff5252;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #d32f2f;
}

.browserInvalid td ul {
    color: #ffcdd2;
    text-align: left;
    margin: 15px 0;
}

.browserInvalid td ul li {
    margin: 8px 0;
}

.browserInvalid td hr {
    border-color: #d32f2f;
    margin: 15px 0;
}