/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

div{
  padding-left: 80px;
}

body {
    font-family: sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #f5f7fa;
    color: #333;
    line-height: 1.5;
}

/* === LAYOUT === */
.container {
    max-width: 480px;
    margin: 80px auto;
    padding: 32px 40px 48px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 600;
}

/* === FORM === */
.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

input {
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #c8d0db;
    border-radius: 6px;
    transition: border-color 0.2s;
}

::placeholder{
  font-size: 12px;
}

input:focus {
    border-color: #0066ff;
    outline: none;
}

button.btn-primary {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #0066ff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

button.btn-primary:hover {
    background: #0051d4;
}

button.btn-primary:active {
    transform: translateY(1px);
}

/* password visibility icon */
.material-icons-outlined {
  display: inline-block;
  width: 14px;
  height: 14px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M2.933 3.491C4.056 2.681 5.456 2 7 2s2.944.682 4.067 1.491c1.128.812 2.02 1.784 2.56 2.437l.005.005c.241.3.368.681.368 1.067s-.127.766-.368 1.067l-.005.005c-.54.653-1.432 1.625-2.56 2.437C9.944 11.32 8.544 12 7 12s-2.944-.682-4.067-1.49C1.805 9.696.913 8.724.373 8.071l-.005-.005C.127 7.767 0 7.387 0 7s.127-.766.368-1.067l.005-.005c.54-.653 1.432-1.625 2.56-2.437M7 9.25a2.25 2.25 0 1 0 0-4.5a2.25 2.25 0 0 0 0 4.5' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.input-wrap {
    position: relative;
    display: inline-block;
    margin-left: -80px;

  }

  .input-wrap .input {
    padding-right: 15px; 
    box-sizing: border-box;
  }

  .input-wrap .btn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0px;
    cursor: pointer;
  }


/* === FEEDBACK === */
.error-message,
.empty-field {
    margin-top: 4px;
    font-size: 13px;
}

.no-error{  /* javaScript */
    display: none;
}

.error{
    border: 2px solid red; /* javaScript */
}

.error-message {
    color: #e60023;
}

.empty-field {
    color: #e60023;
}

ul.error-message {
    padding-left: 24px;
}

ul li {
    list-style: disc;
    margin-bottom: 2px;
}

/* Login Success */
.success{
    width: 330px;
    height: 330px;
    margin-left: 33px;
    align-items: center;
}
