*,
*:after,
*:before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}

body {
    min-height: 100vh;
    background-color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

.order__left {
    order: 1;
}

.order__right {

    order: 2;
    padding: 40px;
}

.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no__overflow {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.form {
    max-width: 500px;
}

.logo {
    margin-bottom: 12px;
}

.logo img{
    margin: 0px auto;
    display: grid;
}

h4 {
    color: #006f45;
    text-align: left;
    margin-bottom: 30px;
    letter-spacing: 0.2px;
    line-height: 20px;
}

input[type=text],
input[type=password] {
    width: 100%;
    padding: 12px 16px;
    margin: 16px 0;
    display: block;
    border: 1px solid #c8c3cf;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #F6F5F7;
    font-size: 16px;
    color: #4F4659;
    outline: none;
    transition: box-shadow 0.25s ease-in-out, background-image 0.25s;
}

input[type=text]:focus,
input[type=password]:focus {
    border-color: #006f45;
    background: #FAF8FD;
    background: #FDFCFE;
    box-shadow: 0 0 0 0.25rem #ebd6ff;
}

::-webkit-input-placeholder {
    color: #A29CA8;
}

:-ms-input-placeholder {
    color: #A29CA8;
}

::placeholder {
    color: #A29CA8;
}

.justify__space_between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 26px 0;
}

input[type=checkbox],
label {
    margin-right: 4px;
    cursor: pointer;
    outline-color: #006f45;
}

.remember_me,
.signup {
    color: #867992;
}

.forgot__password {
    color: #551A8B;
    text-align: left;
    outline-color: #006f45;
}

.forgot__password:active {
    color: #867992;
}

.login__button {
    outline-color: #006f45;
    width: 100%;
    border: none;
    background-color: #006f45;
    padding: 13px 17px;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 16px;
    cursor: pointer;
    transition: box-shadow 0.25s ease-in-out, background-color 0.3s;
    margin-bottom: 10px;
}

.login__button:hover {
    box-shadow: 0 0 0 0.25rem #DAC5EE;
}

.login__button:active {
    background-color: #006f45;
    box-shadow: 0 0 0 0.35rem #DAC5EE;
}

.register__button {
    outline-color: #0F94FA;
    width: 100%;
    border: none;
    background-color: #0F94FA;
    padding: 13px 17px;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 16px;
    cursor: pointer;
    transition: box-shadow 0.25s ease-in-out, background-color 0.3s;
    margin-bottom: 10px;
}

.register__button:hover {
    box-shadow: 0 0 0 0.25rem #0F94FA;
}

.register__button:active {
    background-color: #0F94FA;
    box-shadow: 0 0 0 0.35rem #0F94FA;
}

.signup {
    font-size: 14px;
    text-align: center;
    margin-top: 32px;
}

.img {
    height: 100%;
    object-fit: cover;
    max-width: auto;
}

.invalid-feedback {
    color: red;
    font-size: 14px;
    margin-top: -12px;
}

.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  border-left: 6px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease-in-out;
}

.alert-success {
  background-color: #e6f9ed;
  color: #0f5132;
  border-left-color: #198754;
}

.alert-danger {
  background-color: #fdecea;
  color: #842029;
  border-left-color: #dc3545;
}

.alert-warning {
  background-color: #fff4e5;
  color: #664d03;
  border-left-color: #ffc107;
}

.alert-info {
  background-color: #e7f1ff;
  color: #084298;
  border-left-color: #0d6efd;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Optional: Close button */
.alert::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 8px;
  cursor: pointer;
  font-weight: bold;
  color: inherit;
}

.alert::after:hover {
  opacity: 0.7;
}


@media only screen and (max-width: 800px) {
    .grid {
        grid-template-columns: auto;
    }

    .order__left {
        display: none;
    }

    .order__right {
        order: 1;
    }

    .centered {
        align-items: flex-start;
    }

    .no__overflow {
        align-items: flex-start;
    }

    h4 {
        text-align: center;
    }

    .img {
        width: 100vw;
    }
}

@media only screen and (max-height: 600px) {
    .img {
        width: 120%;
    }
}
