/* =========================================================================
   EthERNet - Ethiopian Education and Research Network
   Indico instance branding (https://event.ethernet.edu.et)
   Brand palette: teal-blue #077089, blue #3C8FC3, dark-blue #2048A1,
                  yellow #F8BE13, red #D1503E
   ========================================================================= */

:root {
    --accent-color:           #077089;
    --accent-highlight-color: #05607a;
    --accent-secondary-color: #2048A1;
    --accent-border-color:    #05425a;
    --surface-accent-secondary-color: #d9edf3;

    --clickable-text-color:          var(--accent-color);
    --clickable-text-highlight-color: #2048A1;

    --tag-generic-color: var(--accent-color);
}

/* Top accent ribbon in EthERNet yellow + subtle brand gradient */
body::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #D1503E 0%, #F8BE13 50%, #077089 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

/* -------------------------------------------------------------------------
   Main site header (page-header) - brand teal band
   ------------------------------------------------------------------------- */
.page-header {
    background-color: #077089;
    border-bottom: 3px solid #F8BE13;
}

/* Header navigation (global-menu) */
.page-header .global-menu,
#global-menu {
    background-color: #05647c;
}

.page-header .global-menu a,
#global-menu a,
#global-menu .ind-menu > button {
    color: #ffffff;
}

.page-header .global-menu a:hover,
#global-menu a:hover,
#global-menu .ind-menu > button:hover {
    color: #F8BE13;
}

/* Header logo: place EthERNet (teal) logo on a white rounded chip so it
   stands out against the teal header instead of blending in. The margins
   give breathing room from the header's left, top and bottom edges. */
.page-header #header-logo,
#header-logo {
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 14px;
    display: inline-block;
    line-height: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    margin: 14px 0 14px 26px;
}

.page-header #header-logo img.header-logo,
#header-logo img.header-logo {
    height: 44px;
    width: auto;
    margin: 0;
    border: none;
}

/* Session / account bar text in the header */
.page-header .session-bar,
.page-header #account-link {
    color: #ffffff;
}

.page-header a {
    color: #eaf7fb;
}

.page-header a:hover {
    color: #F8BE13;
}

/* -------------------------------------------------------------------------
   General control / button accents
   ------------------------------------------------------------------------- */
a,
.u-link,
.clickable-text,
i.icon.link {
    color: var(--accent-color);
}

a:hover,
.clickable-text:hover {
    color: #2048A1;
}

button:not([class*="btn-"]) i,
.control-actions {
    color: var(--accent-color);
}

/* -------------------------------------------------------------------------
   Professional login page
   ------------------------------------------------------------------------- */
.login-page {
    background: linear-gradient(160deg, #eaf6fa 0%, #ffffff 40%, #f2f7f4 100%);
}

/* Widen the login card so the form and logo breathe more.
   NOTE: must match/beat the base selector specificity
   (.login-page .middle .centered-column-wrapper .centered-column) */
.login-page .middle .centered-column-wrapper,
.login-page .middle .centered-column-wrapper .centered-column,
.login-page .middle .centered-column-wrapper .centered-column.wide {
    width: 480px;
}

.login-page .login-container {
    background: #ffffff;
    border: 1px solid #e3eef2;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(5, 66, 91, 0.18);
    padding: 30px 34px 26px;
    width: 100%;
    box-sizing: border-box;
}

/* Logo on the login card - scale with width instead of the base fixed height */
.login-page .middle .centered-column-wrapper .header-logo,
.login-page .login-container .header-logo {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto 24px auto;
    border: none;
}

.login-page .login-container form {
    margin-top: 8px;
}

/* Login input fields - cleaner, rounded */
.login-page form input:not([type=submit]) {
    border-radius: 6px;
    border: 1px solid #ccdde4;
    padding: 0.65em 1em;
    height: 2.75em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-page form input:not([type=submit]):focus {
    border-color: #077089;
    box-shadow: 0 0 0 3px rgba(7, 112, 137, 0.15);
    outline: none;
}

/* Small gap between the username and password fields */
.login-page form input[type="password"] {
    margin-top: 14px;
}

.login-page .login-form-button,
.login-page .login-providers .i-button {
    border-radius: 6px;
}

/* Footer call-to-action / register links */
.login-page .register a {
    color: var(--accent-color);
    font-weight: 600;
}

/* Make the login-page footer full width (like the home page) instead of
   being confined to the narrow centered column. The base rule pins it to
   the bottom of the column with width:inherit; we instead pin it against
   .middle (which spans the full page width) and stretch it edge to edge. */
.login-page .middle {
    position: relative;
}

.login-page .middle .centered-column-wrapper .footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    margin: 0;
    /* Lay the footer content out horizontally, full-width, so the
       brand row below spreads logo (left) and "Powered by" (right). */
    flex-direction: row;
    align-items: stretch;
}

.login-page .middle .centered-column-wrapper .footer > .flexrow.f-j-space-between {
    width: 100%;
    padding: 0 1em;
}

/* -------------------------------------------------------------------------
   Footer - darker EthERNet surface with brand line
   ------------------------------------------------------------------------- */
.footer {
    background-color: #05425a;
    color: #f0f8fb;
    border-top: 3px solid #F8BE13;
}

.footer a {
    color: #8fd0e2;
}

.footer a:hover {
    color: #F8BE13;
}

/* Selected table rows / highlights */
tr.selected td td,
tr.selected,
.ui.selection.table tr.selected td,
table tr.selected td {
    background-color: var(--surface-accent-secondary-color) !important;
}

strong,
b {
    color: inherit;
}
