/*making default global elements */
@font-face {
    font-family: "FiraCode";
    src: 
    url("fonts/FiraCode-Regular.woff2") format("woff2"),
    url("fonts/FiraCode-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: FiraCode, 'Times New Roman', Times, serif;
    padding: 0;
    margin: 0;
}

html, body {
    height: 100%;
    padding: 0;
    margin: 0;
}

a {
    color: #2E97F2;
}


/* two main container styling */
.container {
    display: flex;
    height: 100vh;
}

.container-1 {
    position: relative;
    min-width: 300px;
    overflow: hidden;
}
.container-1 > img {
    height: 100vh;
    object-fit: cover;
}

.container-2 {
    flex: 1;
    background-color: whitesmoke;
}

/* image of the left: logo and bg-img styling */


.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.logo h1 {
    color: antiquewhite;
}

.logo-img {
    width: 25%;
}

.credit {
    width: 100%;
    height: 25px;
    color: white;
    position: absolute;
    bottom:0;
    text-align: center;
    font-size: small;
}


/* Styling the forms and container 2 */

.inside-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.inside-box h2, fieldset{
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    line-height: 1.25;
    white-space: normal;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: break-word;
}

.inside-box h2 {
    max-width: 600px;
}

.form-container {
    border: none;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}
form fieldset:first-of-type {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: none;
    margin-bottom: 20px;
}

form:first-of-type p {

    flex: 1 1 48%;
    min-width: 200px;
}

form fieldset:first-of-type header {
  flex: 1 1 100%;
  margin-bottom: 10px;
}


form fieldset:first-of-type label,
form fieldset:first-of-type input {
  display: flex;
  margin-bottom: 8px;
}

form fieldset:nth-child(2) {
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

fieldset button {
    background-color:#2E97F2;
    color: white;
    font-size: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

fieldset button:hover {
    background-color: #256fcc;
    box-shadow: 0 4px 12px rgba(46, 151, 242, 0.6);
    transform: translateY(-2px);
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* styling the inside of forms */


input {
    font-size: 18px;
    border: #e6e3e3;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 1px 1px 1px hsl(245, 52%, 29%);  
}

input::placeholder {
    color: #cccccc;
}

input[type="password"]:invalid:not(:placeholder-shown),
input[type="email"]:invalid:not(:placeholder-shown),
input[type="tel"]:invalid:not(:placeholder-shown)
{
    border: 2px solid red;
}

input:valid:not(:placeholder-shown) {
    border: 2px solid #2E97F2;
}