@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root
{

--text-color: #444;
--accent-color: #999;
--base-color: #fff;
--input-color: #d9d9d9;

}

*
{

    margin: 0;
    padding: 0;

}

html
{

    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
    color: var(--text-color);
    text-align: center;

}

body
{

    min-height: 100vh;
    background-image: url(../Assets/Images/bckg1.jpg);
    background-size: cover;
    background-position: right;
    overflow: hidden;

}

.wrapper
{

    box-sizing: border-box;
    background-color: var(--base-color);
    height: 100vh;
    width: max(40%, 600px);
    padding: 10px;
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

h1
{

    position: relative;
    top: -100px;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;

}

form
{

    position: relative;
    top: -100px;
    width: min(400px, 100%);
    margin-top: 20px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

}

form > div
{

    width: 100%;
    display: flex;
    justify-content: center;

}

form label
{

    flex-shrink: 0;
    height: 50px;
    width: 50px;
    background-color: var(--accent-color);
    fill: var(--base-color);
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;

}

form input
{

    box-sizing: border-box;
    flex-grow: 1;
    min-width: 0;
    height: 50px;
    padding: 1em;
    font: inherit;
    border-radius: 0 10px 10px 0;
    border: 2px solid var(--input-color);
    border-left: none;
    background-color: var(--input-color);
    transition: 150ms ease;

}

form input:hover
{

    border: 2px solid var(--accent-color);
    border-left: none;

}

form input:focus
{

    outline: none;
    border-color: var(--text-color);

}

div:has(input:focus) > label
{

    background-color: var(--text-color);

}

form input::placeholder
{

    color: var(--text-color);

}

form button
{

    margin-top: 10px;
    border: none;
    border-radius: 1000px;
    padding: .85em 4em;
    background-color: var(--accent-color);
    color: var(--base-color);
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 150ms ease;

}

form button:hover
{

    background-color: var(--text-color);

}

form button:focus
{

    outline: none;
    background-color: var(--text-color);

}

a
{

    text-decoration: none;
    color: var(--accent-color);

}

a:hover
{

    text-decoration: underline;

}

@media(max-width: 1100px)
{

    .wrapper
    {
        width: min(600px, 100%);
        border-radius: 0;
    }

}

form div.incorrect label
{

    background-color: #f06272;

}

form div.incorrect input
{

    border-color: #f06272;

}

#error-message
{

    position: relative;
    top: -100px;
    color: #f06272;
    
}

.login-logo
{

    position: relative;
    width: min(500px, 100%);
    top: -90px;

}

.register-logo
{

    position: relative;
    width: min(500px, 100%);
    top: -30px;

}

.register-p
{

    position: relative;
    top: -60px;

}

select {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid var(--input-color);
    border-radius: 10px;
    background-color: var(--input-color);
    transition: border-color 150ms ease;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
  }
  
  select:hover {
    border-color: var(--accent-color);
  }
  
  select:focus {
    outline: none;
    border-color: var(--text-color);
  }
  
  .price-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  .price-list th, .price-list td {
    border: 1px solid var(--input-color);
    padding: 10px;
    text-align: left;
  }
  
  .price-list th {
    background-color: var(--accent-color);
    color: var(--base-color);
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .price-list td {
    background-color: var(--base-color);
  }
  
  .price-list tr:nth-child(even) td {
    background-color: var(--input-color);
  }

/* ── Agreement Row Alignment ───────────────────────────── */
form .agreement-row {
  /* take full form width */
  width: 100%;
  /* override the form’s center-alignment */
  display: flex;
  align-items: flex-start;
  /* indent so checkbox lines up with text fields */
  padding-left: calc(50px + 1em); /* 50px label + 1em input padding */
  margin: 1.5em 0;
}

form .agreement-row input[type="checkbox"] {
  /* same size as before */
  width: 1.2em;
  height: 1.2em;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

form .agreement-row label {
  /* allow wrapping, give space */
  margin-left: 0.75em;
  line-height: 1.4;
  font-size: 0.95rem;
  color: var(--text-color);
}

form .agreement-row a {
  color: var(--accent-color);
  text-decoration: underline;
}

#error-message,
#agreement-error {
  color: #c00;
  font-size: 0.9rem;
  margin-top: 0.25em;
}

/* ── Button Styling (for reference) ───────────────────── */
#buttoninvoice {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--base-color);
  border: none;
  padding: 0.75em 2em;
  border-radius: 1.5em;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

#buttoninvoice:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Agreement Row Overrides ───────────────────────────── */
form .agreement-row {
  /* span full form width, not centered */
  width: 100%;
  display: flex !important;
  justify-content: flex-start !important; /* left‐align everything */
  align-items: flex-start;
  padding-left: calc(50px + 1em);        /* match icon+padding of your inputs */
  margin: 1.5em 0;
  gap: 0.5em;                             /* small gap between checkbox and text */
  flex-wrap: wrap;                        /* let the text wrap onto next line if needed */
}

form .agreement-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  margin: 0.1em 0 0 0;                    /* nudge checkbox vertically to align with first line of text */
  cursor: pointer;
}

form .agreement-row label {
  /* take remaining space, allow wrapping */
  flex: 1;
  text-align: left;
  line-height: 1.4;
  font-size: 0.95rem;
  color: var(--text-color);
}

form .agreement-row a {
  color: var(--accent-color);
  text-decoration: underline;
}

#agreement-error {
  /* keep your error text styling */
  color: #c00;
  font-size: 0.9rem;
  margin-top: 0.25em;
}


/* Override the default form > div centering JUST for the agreement row */
form .input-group.agreement {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start !important; /* force left alignment */
  align-items: flex-start;                 /* align top of checkbox/text */
  padding-left: calc(50px + 1em);          /* indent to match your icon inputs */
  margin: 1.5em 0;
  gap: 0.5em;                               /* space between checkbox and label */
  flex-wrap: wrap;                          /* allow text to wrap nicely */
}

/* Tweak the checkbox itself */
form .input-group.agreement input[type="checkbox"] {
  margin: 0.1em 0 0 0; /* nudge it down a touch to align with first line of text */
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
}

/* And the label next to it */
form .input-group.agreement label {
  flex: 1;                /* fill the remaining line */
  text-align: left;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* Links in your agreement */
form .input-group.agreement a {
  color: var(--accent-color);
  text-decoration: underline;
}