﻿/* General body */
body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    margin: 20px;
    padding: 0;
    background: #f2f2f2;
}

.warning {
    color: maroon;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}

/* Wrapper with left image and right form */
.form_wrapper {
    display: flex;
    min-height: 80vh;
    width: 90%;
    max-width: 1000px;
    margin: 2% auto;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
    .form_wrapper .row {
        margin: 10px -15px;
    }
    .form_wrapper input[type=submit] {
        background: #8a8a8a;
        height: 35px;
        line-height: 35px;
        width: 50%;
        border: none;
        outline: 0; /* none */
        cursor: pointer;
        color: #fff; /* or white */
        font-size: 1.6em;
        display: block;
        margin: 0 auto;
        margin-bottom: 15px;
        text-align: center; /* delete */
        border-radius: 0.4rem;
    }

.form_right {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px; /* optional max-width */
}
    .form_right .input_field input[type=text],
    .form_right .input_field input[type=email],
    .form_right .input_field input[type=password] {
        width: 100%;
        box-sizing: border-box;
    }
/* LEFT SIDE IMAGE */
.login_left {
    flex: 1;
    background-image: url("/images/imgcss1short.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* RIGHT FORM */
.login_right {
    flex: 1;
    padding: 40px 60px;

    background: linear-gradient(135deg, #ffffff, #f1f7fc);
}

/* Form titles */
.form_wrapper h2 {
    font-size: 2em;
    font-weight: 600;
    color: darkblue;
    margin-bottom: 25px;
    text-align: center;
}
.form_wrapper .title_container { /* added original stylesheet1*/
    text-align: center;
    padding-bottom: 15px;
}

.input_field {
    position: relative;
    margin-bottom: 20px;
}

    .input_field > span {
        position: absolute;
        left: 0;
        top: 3px;
        color: #333;
        height: 100%;
        border-right: 1px solid #cccccc;
        text-align: center;
        width: 35px;
    }

        .input_field > span > i {
            padding-top: 10px;
        }

input[type=email], input[type=password], input[type=text] {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
    font-size: 1em;
    outline: none;
}

    input[type=email]:focus, input[type=password]:focus, input[type=text]:focus {
        border-color: #999;
        box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }
.checkbox_option {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Prevent label text from wrapping */
    width: 100%; /* Ensure full width so flex works properly */
}
/* Textarea input field styling */
.textarea_field {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 100%;
    vertical-align: top;
    color: #333;
    border-right: 1px solid #ccc;
    text-align: center;
    padding-top: 10px;
}

textarea {
    width: calc(100% - 45px); /* leave space for the icon */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
    font-size: 1em;
    resize: none;
    outline: none;
}

    textarea:focus {
        border-color: #999;
        box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }

/* Wrap textarea and icon similar to input fields */
.input_field.textarea_wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

    .input_field.textarea_wrapper > span {
        flex: 0 0 35px;
        height: 100%;
        text-align: center;
        border-right: 1px solid #ccc;
        color: #333;
        padding-top: 10px;
    }

    .input_field.textarea_wrapper > textarea {
        flex: 1;
        padding: 10px 10px 10px 40px; /* left padding like other inputs */
        border: 1px solid #ccc;
        border-radius: 0.4rem;
        font-size: 1em;
        resize: none;
        outline: none;
    }

        .input_field.textarea_wrapper > textarea:focus {
            border-color: #999;
            box-shadow: 0 0 5px rgba(0,0,0,0.1);
        }
#authorize {
    display: flex;
    align-items: center;
    /* justify-content: flex-start; space between buttons */
    gap: 8px; /* optional spacing */
    /* width: 100%; */
    height: 40px;
}
/* Submit */
    #authorize input[type=submit] {
        width: 110px;
        min-width: 110px;
        height: 40px;
        line-height: 40px;
        font-size: 1em;
        border: none;
        border-radius: 0.4rem;
        background: #007bff;
        color: #fff;
        cursor: pointer;
        display: inline-flex; /* override block */
        margin: 0; /* REMOVE auto margins */
    }

    #authorize input[type=submit]:hover {
        background: #0056b3;
            height: 40px;
    line-height: 40px;
    }
    #authorize .g_id_signin {
        display: flex;
        align-items: center;
    }
        #authorize .g_id_signin > div {
            display: flex !important;
            align-items: center !important;
        }

    #authorize iframe {
        display: block !important;
    }
.g_id_signin {
    margin-left: auto; /* PUSH GOOGLE BUTTON TO THE RIGHT */
    /* display: flex;
    justify-content: flex-end;
    max-width: 220px;*/
}
/* Keyframes (preserved) */
@keyframes check {
    0% {
        height: 0;
        width: 0;
    }

    25% {
        height: 0;
        width: 7px;
    }

    50% {
        height: 20px;
        width: 7px;
    }
}

@media screen and (max-width:1200px) {
    /* Right content adapts */
    .login_right {
        padding: 1.5rem;
        justify-content: flex-start;
    }
    .form_right {
        max-width: 350px;
        width: 90%;
        margin: 0 auto;
    }

    .input_field input[type=email],
    .input_field input[type=password],
    .input_field input[type=text] {
        padding-left: 32px !important; /* instead of 40px */
        font-size: 0.9em;
    }

    .input_field > span {
        width: 28px; /* stays fixed, slightly smaller but stable */
    }
    /* Buttons shrink proportionally */
    .primary_btn,
    .google_btn {
        height: 38px;
        font-size: 1.1em;
    }
        .google_btn span {
            font-size: 0.9em;
        }
}
@media screen and (max-width:800px) {
    .login_left {
        display: none; /* hide on smaller screens */
    }
}
@-webkit-keyframes check {
    0% {
        height: 0;
        width: 0;
    }

    25% {
        height: 0;
        width: 7px;
    }

    50% {
        height: 20px;
        width: 7px;
    }
}
