@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;500;600;700&display=swap');/* Modern CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}


:root {
  --brand-color: #FF7518;
  --color-primary: var(--brand-color);
  --text-color: #1F2937;
  --color-error: #dc2626;
  --color-error-background: #fef2f2;
  --color-error-border: #991b1b;
  --color-error-text: #991b1b;
  --color-muted: #ccc;
  --color-contrast-low: hsl(240, 1%, 83%);
  
  --default-shadow: 0 2px 8px rgb(0 0 0 / 12%);
  --shadow: var(--default-shadow);

  --bs-btn-active-bg: var(--brand-color);
  --bs-btn-bg: var(--brand-color);

  /* --filter-panel-bg: #ccc; */
  --ant-btn-solid-bg-color: var(--brand-color);
}

body {
  font-family: 'Noto Serif', serif, "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  margin: 0;
  background: #f3f4f6 url('/assets/bg.png') center / cover no-repeat fixed;
}

/* html,
body,
#root {
  height: 100%;
} */

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.header {
  background-color: var(--brand-color);
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.logo {
  display: flex;
  flex-direction: column;
  width: 150px;
  gap: 2px;
}

.logo-sub {
  color: white;
  font-size: 12px;
}

.card-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.main {
  /* background-image: linear-gradient(45deg, rgb(142, 197, 252) 0%, rgb(141, 211, 255) 25%, rgb(161, 216, 255) 50%, rgb(193, 210, 255) 75%, rgb(224, 195, 255) 100%); 
  background-size: cover; 
  background-position: center center; 
  background-repeat: no-repeat; */
}

.main-links {
  display: flex;
  gap: 16px;
}

.main-link {
  background-color: #ccc;
  padding: 4px 8px;
  border-radius: 4px;
}

.content {
  margin: 40px auto;
  padding: 0 4px;
}

@media (min-width: 64rem) {
  .main {
    /* width: 900px; */
    margin: 30px auto;
  }
}

.content-focus {
  width: 900px;
  text-align: left;
}

.list {
  display: flex;
  gap: 4px;
  flex-direction: column;
}

.label {
  font-weight: 600;
}

.search-container {
  width: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 30px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  border-radius: 8px;
  padding: 16px;
}

.search-job {
  display: flex;
  margin: 20px auto;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.search-card {
  width: 100%;
  max-height: 150px;
  border: 1px solid #efefef;
  border-radius: 4px;
  margin: 0 auto;
  padding: 4px;
  white-space: wrap;
  text-overflow: ellipsis;
  background-color: white;

  &:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    cursor: pointer;
  }
}

.job-card {
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 16px;
  margin: 4px 0 50px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.page-content {
  margin: 20px auto;
  width: 100%;
}

@media (min-width: 64rem) {
  .page-content {
    width: 900px;
  }
}

.job-line-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.job-header {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  gap: 8px;
}

.job-title {
  display: grid;
  grid-template-columns: [title] 1fr [location] 250px;
}

.jtt {
  grid-area: title;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
}

.jtl {
  grid-area: location;
  font-size: 1rem;
  text-align: right;
}

/* Form */
.form-group {
  display: block;
  margin: 4px 0;
}

.form-group-error {
  input {
    border: 1px solid var(--color-error-border);
    border-radius: 4px;
  }

  .error {
    color: var(--color-error-text);
  }
}

.form-input {
  width: 100%;
  height: 40px;
  margin: 4px 0 0 0;
  padding: 4px;
}

@media (min-width: 64rem) {
  .form-input {
    width: 450px;
  }
}

.content-title {
  margin: 8px 0;
}

.go-back {
  color: var(--brand-color);
  margin: 32px 4px;
  text-decoration: none;
  display: block;
  position: relative;

  > span {
    display: block;
    position: absolute;
    top: 0;
    left: 30px;
  }

  &:hover {
    font-weight: 600;
  }
}

input[type="text"] {
  padding: 8px 4px;
}

/* login */
.login {
  margin: 40px auto;

  label {
    align-self: center;
  }

  input {
    min-width: 0;
  }
}

.header-actions {
  margin: 8px;
  display: flex;
  gap: 8px;
}

.header-link {
  font-size: 18px;
  color: white;
  text-decoration: none;
}

@media (min-width: 64rem) {
  .login {
    display: grid;
    column-gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    width: 900px;
  }
}

.login-form-container {
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

@media (min-width: 64rem) {
  .login-form-container {
    width: 450px;
  }
}

.login-form {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.75rem 1rem;
}

.login-label {
  grid-area: label;
}

.login-error,
.login-submit {
  grid-column: 1 / -1;
}

.page-title {
  margin: 24px 12px 0 0;
}

.link {
  color: var(--brand-color);
  text-decoration: none;

  &:hover {
    font-weight: bold;
  }

  &:visited {
    color: none;
  }
}

.search-wrap {
  display: grid;
  grid-template-columns: 250px 1fr;
}

.job-list {
  width: 80%;
  margin: 30px auto;
}

.jobs-headers {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
}

.com-wrap {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
}

.com-head {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: 
    "logo name"
    "address registered";


  & > img {
    grid-area: logo;
  }

  & > h3 {
    grid-area: name;
    text-align: right;
  }

  & > .address {
    grid-area: address;
  }

  & > .registered {
    grid-area: registered;
    text-align: right;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font: 600 0.95rem/1 system-ui, sans-serif;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--brand-color);
  border-color: var(--brand-color);
  box-shadow: 0 2px 5px rgb(255 117 24 / 25%);
}

.button-primary:hover:not(:disabled) {
  background: #e9650c;
  border-color: #e9650c;
  box-shadow: 0 4px 10px rgb(255 117 24 / 30%);
}

.button-secondary {
  color: #333;
  background: #fff;
  border-color: #d5d5d5;
}

.button-secondary:hover:not(:disabled) {
  background: #f7f7f7;
  border-color: #aaa;
}