/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    height: 100%;
}

a { color: #009BFF; }
a:hover { opacity: .75; }

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    margin: 10px 0;
    font-size: 1.25rem;
    font-family: inherit;
    border: 1px solid #CCC;
    padding: .6em .7em;
    border-radius: 4px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #009BFF;
    box-shadow: 0 0 0 3px rgba(0,155,255,.15);
}

input[type="submit"],
button,
a.btn {
    display: inline-block;
    border: none;
    background-color: #009BFF;
    color: #FFF;
    text-decoration: none;
    font-family: inherit;
    font-size: 1.1rem;
    line-height: 1;
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover,
a.btn:hover { opacity: .85; }

a.btn.outline {
    background: transparent;
    color: #009BFF;
    border: 2px solid #009BFF;
}
a.btn.outline:hover {
    background: #009BFF;
    color: #FFF;
}

label {
    cursor: pointer;
    font-size: 14px;
}

input[type="checkbox"] {
    vertical-align: middle;
    margin-top: -2px;
    margin-right: .4em;
}

/* Layout — split screen */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

.logo-panel {
    width: 50%;
    background-color: #333;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-panel svg {
    max-width: 50%;
    max-height: 120px;
}

.form-panel {
    width: 50%;
    background-color: #FFF;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-panel .contain {
    width: 500px;
    max-width: 85%;
}

.form-panel .buttons { margin-top: 14px; }

.form-panel .ca {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
}

.form-panel p { margin: 12px 0; }

/* Flash messages */
.flash {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}
.flash a { color: inherit; font-weight: 600; }
.flash-error { background: #FFF0F0; border-left: 4px solid #D00; color: #900; }
.flash-success { background: #F0FFF0; border-left: 4px solid #090; color: #060; }
.flash-info { background: #F0F8FF; border-left: 4px solid #009BFF; color: #036; }

/* Responsive */
@media screen and (max-width: 900px) {
    input[type="text"],
    input[type="email"],
    input[type="password"] { font-size: 1.1rem; }
    input[type="submit"] { font-size: 1rem; }
}

@media screen and (max-width: 700px) {
    .auth-wrapper { flex-direction: column; }
    .logo-panel,
    .form-panel { width: 100%; }
    .logo-panel { min-height: auto; padding: 30px 0; }
    .logo-panel svg { max-width: 200px; max-height: 60px; }
    .form-panel { padding: 30px 0; }
    .form-panel .contain { max-width: 90%; }
}

@media screen and (max-width: 500px) {
    input[type="text"],
    input[type="email"],
    input[type="password"] { font-size: 1rem; }
    input[type="submit"] { font-size: .95rem; }
}
