/* Create a new type of font */
@font-face {
    font-family: 'CustomFont';
    src: url('fonts/MainFont.ttf');
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'CustomFont';
}
.canvas_3 {
    position: absolute;
    top: 0;
    left: 0;
}
.canvas_2 {
    position: absolute;
    top: 150px;
    left: 0;
}
.canvas_1 {
    position: absolute;
    top: 0;
    left: 0;
}
.canvas_4 {
    position: absolute;
    top: 0px;
    left: 0;
}
.canvas_a {
    position: absolute;
    top: 25px;
    left: 0;
}
.canvas_b_1 {
    position: absolute;
    top: 325px;
    left: 0px;
}
.canvas_b_2 {
    position: absolute;
    top: 445px;
    left: 0px;
}
.canvas_b_3 {
    position: absolute;
    top: 437px;
    left: 0px;
}
.canvas_b_4 {
    position: absolute;
    top: 0px;
    left: 0px;
}
.canvas_b_5 {
    position: absolute;
    top: 0px;
    left: 0px;
}
body {
    overflow-x: hidden;
    background: rgb(208, 216, 166);
}

/* Container */
.container{
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    column-gap: 30px;
}
/* Website Logo */
.logo {
    position: absolute;
    top: 20px;
    left: 10px;
    width: 200px; 
    height: auto;
    z-index: 9;
}

/* Form */
.form{
    position: absolute;
    max-width: 430px;
    width: 100%;
    padding: 30px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 9;
}
.form.signup{
    opacity: 0;
    pointer-events: none;
}
.forms.show-signup .form.signup{
    opacity: 1;
    pointer-events: auto;
}
.forms.show-signup .form.login{
    opacity: 0;
    pointer-events: none;
}
form{
    margin-top: 30px;
}

/* Header */
header{
    font-size: 28px;
    font-weight: 600;
    color: #261638;
    text-align: center;
}

/* Field */
.form .field{
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 20px;
    border-radius: 6px;
}

/* Input and button */
.field input,
.field button{
    height: 100%;
    width: 100%;
    border: none;
    font-size: 18px;
    font-weight: 500;
}

/* Input */
.field input{
    outline: none;
    padding: 0 15px;
    background: transparent;
    color: #e4e4e4;
    border-bottom: 2px solid#261638;
}

/* Label */
.field label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #261638;
    font-weight: 500;
    pointer-events: none;
    transition: 0.5s;
}
.field input:focus~label,
.field input:valid~label{
    top: -5px;
}
.field input:focus{
    border-bottom-width: 2px;
}

/* Show the password icon */
.eye-icon{
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #261638e5;
    cursor: pointer;
    padding: 5px;
}

/* button */
.field button{
    color: #fff;
    background-color: #261638e5;
    transition: all 0.3s ease;
    border-radius: 6px;
    cursor: pointer;
}
.field button:hover{
    background-color: #261638;
}

/* Links */
.form-link{
    text-align: center;
    margin-top: 10px;
}
.form-link span,
.form-link a{
    font-size: 14px;
    font-weight: 500;
    color: #261638;
}
.form a{
    color: #fff;
    text-decoration: none;
}
.form-content a:hover{
    text-decoration: underline;
}

/* Seperative line */
.line{
    position: relative;
    height: 1px;
    width: 100%;
    margin: 36px 0;
    background-color: #261638;
}
.line::before{
    content: 'Or';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #261638;
    color: #fff;
    padding: 0 15px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-field input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-field label {
    font-size: 14px;
    color: #261638;
    font-weight: 500;
    position:relative;
    top:2px;
}

/* Login option */
.media-options a{
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Facebook */
a.facebook{
    color: #261638;
    background-color: #4267b2c5;
    transition: all 0.3s ease;
}
a.facebook:hover{
    color: #261638;
    background-color: #4267b2;
}
a.facebook .facebook-icon{
    height: 28px;
    width: 28px;
    color: #0171d3;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

/* Login option icon */
.facebook-icon,
img.google-img{
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}
img.google-img{
    height: 20px;
    width: 20px;
    object-fit: cover;
}

/* Google */
a.google{
    background-color: #ffffffc2;
    border: 1px solid #CACACA;
    transition: all 0.3s ease;
}
a.google:hover{
    background-color: #ffffff;
    border: 1px solid #CACACA;
}
a.google span{
    font-weight: 500;
    opacity: 1;
    color: #261638;
}

/* Error messages */
#popup-message {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    display: none;
    z-index: 9999;
}
#popup-message.show {
    display: block;
}

/* For smaller devices */
@media screen and (max-width: 400px) {
    .form{
        padding: 20px 10px;
    }
    
}


