/* =============================================================================
   Ciliate.org landing-site stylesheet (shared).
   Extracted from the former inline <style> in landing/index.php so that the
   landing page AND the auth-flow pages (landing/authFlow/*) inherit ONE sheet.
   Located in landing/style/, so relative url()s are resolved from here:
     - fonts live beside this file   -> GothicA1-*.ttf
     - images live one level up      -> ../images/*
     - absolute /images/* are docroot-level and kept as-is.
   ========================================================================== */

@font-face { font-family: "Gothic A1 Regular"; src: url(GothicA1-Regular.ttf) format("truetype"); }
@font-face { font-family: "Gothic A1 Black";   src: url(GothicA1-Black.ttf)   format("truetype"); }

body { margin: 0; min-width: 1311px; font-family: Gothic A1 Regular, sans-serif; font-size: 14px; }
a { color: black; }

/* --- Banner + species nav (shared header: include/_landing_header.php) ------ */
#banner { position: relative; }
#banner_background { width: 100%; height: 231px; display: block; z-index: -1; }
#banner_content { position: absolute; top: 5px; left: 5px; z-index: 1; }
#banner_site_name { font-family: Gothic A1 Black, sans-serif; font-size: 60px; color: white; padding-left: 240px; padding-top: 58px; }
#banner_site_tagline { font-family: Gothic A1 Black, sans-serif; font-size: 24px; color: black; padding-left: 240px; }

#nav { width: 100%; height: 88px; background-color: #A1C375; text-align: right; }
#nav_icons_background { background-image: url("../images/nav_icons_backgrounds.png"); background-repeat: no-repeat; background-position: right;
                        height: 88px; padding-right: 87px; position: relative; min-width: 1464px; }
#nav_item_contents { padding-top: 5px; float: right; width: 153px; }
#nav_item_icon { border-left: 0; border-right: 0; height: 64px; width: 64px; }
#nav_item_text { position: absolute; top: 68px; color: white; margin-left: 12px; width: 153px; text-align: center; }
#nav_image_map_container { width: 100%; text-align: right; position: absolute; top: 0; left: 0; z-index: 1; }
#nav_image_map { width: 1464px; height: 88px; }

/* --- Home page content (landing/index.php middle) -------------------------- */
#content_area { padding-top: 54px; padding-left: 80px; padding-right: 80px; }
#contents_left { float: left; width: 275px; }
#content_links { width: 275px; margin-right: 78px; }
#content_recent { width: 275px; margin-right: 78px; margin-top: 20px; }
#content_papers { width: 275px; margin-right: 78px; margin-top: 20px; }
#content_main { margin-left: 400px; }

.content_box { border-radius: 25px; padding: 20px 25px 20px 25px;
               box-shadow: 0 2px 2px 2px #AAA; -moz-box-shadow: 0 2px 2px 2px #AAA; -webkit-box-shadow: 0 2px 2px 2px #AAA; }
.content_box_title { border-radius: 25px; padding: 10px 25px 10px 25px; background-color: #8BB553; font-size: 18px; }
.content_box_content { padding-top: 20px; padding-left: 20px; }
.content_links_link { padding-left: 25px; padding-top: 20px; display: block; color: black; text-decoration: none; font-size: 16px; }
.content_links_link:hover { text-decoration: underline; }
.content_recent_item { padding: 0 0 10px 0; }

/* --- Footer (shared footer: include/_landing_footer.php) ------------------- */
#footer { float: left; width: 100%; position: relative; font-size: 11px; line-height: 15px; margin-top: 54px;
          background: url('../images/footer_bg.jpg') repeat-x #fff; }
#footer_inner { max-width: 1024px; margin: 31px auto 0 auto; text-align: left; }
#footer_left { min-width: 560px; float: left; }
#footer p { float: left; }
#footer img { float: left; }
#footer_copyright { margin: 20px 0 0 20px; }
#footer_copyright_title { color: #c9000a; }
#footer_notice { padding: 15px; float: left; clear: both; color: #9c9c9c; font-size: 9px; }

/* --- Auth flow (landing/authFlow/*): landing chrome + a centered card ------ */
#auth_area { padding: 54px 80px; display: flex; justify-content: center; }
.auth_card { width: 460px; max-width: 100%; }
.auth_card .content_box_title { margin: 0; }
.auth_body { padding: 24px 25px; }
.auth_body p.lead { color: #444; margin: 0 0 16px; }
.auth_body label { display: block; margin: 14px 0 4px; font-size: 14px; }
.auth_body label small { color: #777; font-weight: normal; }
.auth_body input[type=text],
.auth_body input[type=email],
.auth_body input[type=password] { width: 100%; padding: 10px 12px; border: 1px solid #cdd3c2; border-radius: 8px;
    font-size: 15px; font-family: inherit; box-sizing: border-box; background: #fbfcf9; }
.auth_body input:focus { outline: none; border-color: #8BB553; background: #fff; }
.auth_body select {
    width: 100%; padding: 11px 40px 11px 12px; border: 1px solid #cdd3c2; border-radius: 8px;
    font-size: 15px; font-family: inherit; box-sizing: border-box; color: #1c1c1c; cursor: pointer;
    background-color: #fbfcf9;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%238BB553' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.auth_body select:hover { border-color: #8BB553; }
.auth_body select:focus { outline: none; border-color: #8BB553; background-color: #fff;
    box-shadow: 0 0 0 3px rgba(139,181,83,.18); }
.auth_hint { margin: 0 0 6px; font-size: 12px; color: #777; }
.auth_hint a { color: #1a6fb5; }
.auth_btn { margin-top: 20px; width: 100%; padding: 11px; border: 0; border-radius: 8px; background: #8BB553;
    color: #fff; font-size: 15px; font-family: inherit; cursor: pointer; }
.auth_btn:hover { background: #7aa347; }
.auth_links { margin-top: 18px; font-size: 14px; text-align: center; }
.auth_links a { margin: 0 8px; }
.auth_msg { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.auth_msg_err { background: #fdecea; color: #a12920; border: 1px solid #f5c6c2; }
.auth_msg_ok { background: #eaf6e3; color: #33660f; border: 1px solid #cfe6bd; }
.auth_msg ul { margin: 6px 0 0; padding-left: 20px; }
.auth_hp { position: absolute; left: -9999px; top: -9999px; }   /* honeypot */
.auth_help { text-align: center; font-size: 14px; padding: 20px 16px 8px; }
.auth_help a { color: #1a6fb5; text-decoration: underline; }
.auth_btn:disabled { opacity: .5; cursor: not-allowed; }
.auth_note { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
             background: #fff6e6; color: #7a5b12; border: 1px solid #f0dca8; text-align: center; }

/* Auth pages are short — keep the footer pinned to the bottom of the viewport.
   (Targets only pages that render #auth_area, i.e. authFlow/*, not the home page.) */
body:has(#auth_area) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(#auth_area) #auth_area { flex: 1 0 auto; }
body:has(#auth_area) #footer { float: none; margin-top: 0; }
