@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body::-webkit-scrollbar {
    display: none;
    overflow: auto;
}

.main {
    min-height: 120vh;
    background: url('./techy1.jpg'), #010b2caf;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    
}

.container {
    padding: 20px 10px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    margin-top: 5em;
    margin-bottom: 6em;

}

.container .top {

    display: flex;
    justify-content: center;
    align-items: center;
}

.container .top img {
    width: 60px;
    height: 60px;
}

.container .top h2 {
    margin: 0;
    color: #01520c;
    font-size: 16px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(248, 241, 241, 0.25);
}

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

.form-container form {
    background: #ffffffe7;
    min-width: 410px;
    padding: 20px 20px;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.11);
}

.form-container form .title {
    padding: 10px;
    text-align: center;
}

.form-container form .title h2 {
    color: #0b2a66;
    display: inline-block;
    border-bottom: 2px orangered solid;
    box-shadow: 0 2px 0 rgb(38, 153, 3);
    margin: 0 auto;
    font-weight: 600;
    text-align: center;
}

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

.title .logo img {
    height: 110px;
    width: 100px;

}

.input-control {
    padding: .5rem 0;
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.input-control span,
.check span {
    color: orangered;
    text-indent: 10px;
    font-size: 13px;
}

label i {
    color: #28a745;
    font-size: 15px;
    margin-right: 3px;
}

.input-control label {

    color: #070606;
    font-size: 14px;
    font-weight: 500;

}

.input-control input,
.input-control select {
    width: 100%;
    padding: 0.7rem;
    background: #ffffff75;
    border: #f7f1f1 1px solid;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.5s;
    font-size: 14px;
    text-indent: 10px;
    appearance: none;

}

.input-control input:focus {
    border-color: #28a745;
}

.input-control input::placeholder,
.input-control select {
    color: #252727;
    font-size: 12px;

}

#show {
    color: #28a745;
    font-size: 15px;
    position: relative;
    margin: auto;
    margin-right: 10px;
    top: -35px;
}

#password_e {
    position: relative;
    top: -20px;
}

.check {
    padding-bottom: 15px;
    font-size: 13px;
}

.terms {
    display: flex;
    align-items: center;
    gap: 15px;

}

button {
    position: relative;
    top: -25px;
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: #28a745;
    border: #28a745 1px solid;
    border-radius: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover,
button:active {
    background: #ddf0cc7c;
    color: #218838;

}

.remember-forgot {
    display: flex;
    position: relative;
    top: -17px;
    align-items: center;
    justify-content: space-between;
}

.check {
    display: flex;
    align-items: center;
    gap: 3px;
}

.forgot a {
    color: orangered;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    position: relative;
    transition: all 0.4s ease;
    top: -4px;
}

.forgot a:hover {
    color: forestgreen;
}

.signin-signup {
    text-align: center;
    margin-top: 2em;
}

.signin-signup p {
    font-size: 13px;
}

.signin-signup p a {
    margin-left: 4px;
    transition: all 0.4s ease;
    font-weight: 600;
    color: orangered;
    text-decoration: none;
}

.signin-signup p a:hover {
    color: forestgreen;
}

.icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding-top: 6px;
}

.icons i {
    font-size: 18px;
    color: #28a745;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding-top: 15px;
    margin-top: 15em;
    font-size: 13px;
    color: rgb(3, 34, 1);

}

.footer p a {
    color: #08bd32;
    font-weight: 600;
}

/* Styling for success and error popups */
.popup {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 400px;
    padding: 15px;
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.8s ease;
    z-index: 1000;
}


.popup.success {
    background: #28a745;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 4px 12px rgba(23, 162, 184, 0.2);
}



.popup.error {
    background-color: #f44336;
    box-shadow: 0px 4px 12px rgba(255, 0, 0, 0.2);
}


.popup.show {
    opacity: 1;
    visibility: visible;
}





@media(max-width:413px) {
    .form-container form {
        width: 100%;
        min-width: 200px;
    }
}

@media(max-width:313px) {
    .container .top {

        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .container .top h2 {
        text-align: center;
    }
}