/* =========================================================
   TICL LOGIN PAGE CSS
   Depends on: auth-common.css
========================================================= */

/* =========================================================
   PAGE LAYOUT
========================================================= */
body {
  margin: 0;
  padding: 0 0 30px;
  font-family: Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

/* =========================================================
   BRAND HEADER (sticky)
========================================================= */
.brand-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;

  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 8px 0;
  background: #f0f2f5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.company-name {
  margin-right: auto;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
  width: 80%;
  max-width: 1200px;
  padding: 15px 20px 0;
}

/* =========================================================
   BRAND SECTION
========================================================= */

.left-section {
  flex: 2;
  padding-right: 40px;
}

.brand-logo {
  margin: 0 0 20px;
  color: #1D8FCB;
  font-size: 56px;
  font-weight: 700;
}

.tagline {
  max-width: 100%;
  font-size: 18px;
  line-height: 28px;
  color: #1c1e21;
}

/* =========================================================
   LOGIN CARD
========================================================= */
.login-container {
  width: 360px;
  padding: 20px 18px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
  text-align: center;
}

/* =========================================================
   TOP LINKS (sasa ni sehemu ya flex ya .brand-header)
========================================================= */

.lang-links,
.auth-links {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.lang-links a {
  padding: 4px 15px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

.lang-links a:hover {
  background: var(--secondary-hover);
  text-decoration: none;
}

.auth-links a {
  padding: 4px 15px;
  background: #0c0a02;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.auth-links a:hover {
  background: var(--secondary-hover);
  text-decoration: none;
}

/* =========================================================
   LOGIN INPUT
========================================================= */
.inputtext {
  margin: 6px 0;
  padding: 10px 42px 10px 12px;
  font-size: 15px;
}

/* =========================================================
   ROLE SELECT
========================================================= */
.role-select {
  margin: 4px 0 8px;
  padding: 8px 10px;
  font-size: 14px;
}

/* =========================================================
   LOGIN BUTTONS
========================================================= */
.login-button {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.login-button:hover {
  background: var(--secondary-hover);
}

.clear-button {
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  background: #8a94a6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.clear-button:hover {
  background: #6f7a8c;
}

.create-account-button {
  width: 100%;
  padding: 10px;
  background: #0c0a02;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.create-account-button:hover {
  background: var(--secondary-hover);
}

/* =========================================================
   LOGIN LINKS
========================================================= */
.link,
.no-account {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.link {
  color: var(--primary);
}

.divider {
  margin: 12px 0;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:768px) {

  .brand-header {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-content: center;
    padding: 10px 15px;
  }

  .company-name {
    margin-right: 0;
    flex-basis: 100%;
    text-align: center;
  }

  .lang-links,
  .auth-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .lang-links a,
  .auth-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .container {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }

  .left-section {
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .brand-logo {
    font-size: 48px;
  }

  .tagline {
    font-size: 16px;
    line-height: 24px;
  }

  .login-container {
    width: 100%;
    max-width: 420px;
  }
}