﻿@font-face {
    font-family: MainFont;
    src: url(../font/DMSans-Medium.ttf);
}

/* Root Variables */
:root {
    /* Apple Green Theme */
    /*--primary-color: #8DB600;*/
    /*--primary-hover: #7C9E00;*/
    /*--primary-shadow: rgba(141, 182, 0, 0.5);*/

    /* Orange Theme */
    --primary-color: #f1af44;
    --primary-hover: #d48f34;
    --primary-shadow: rgba(241, 175, 68, 0.5);
}

* {
    margin: 0;
    padding: 0;
    font-family: MainFont, sans-serif;
    font-size: 16px;
    font-weight: normal;
    box-sizing: border-box;
}

/* Background Styling */
body {
    color: #2a2a2a;
    background-color: #d7dde2;
    background: url('../images/Login_Background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container Layout */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.hr-divider {
    width: 100%;
    max-width: 280px;  /* Matches input field width */
    border: none;
    border-top: 1px solid #ccc;  /* Light gray border */
    margin: 15px auto;  /* Adds spacing around it */
}

/* Left Section (Login Banner) */
.largesection {
    width: 40%;
    display: flex;
    justify-content: center;
}

.largesection img {
    width: 450px;
    height: auto;
}

/* Right Section (Login Form) */
.smallsection {
    width: 50%;
    display: flex;
    justify-content: center;
}

.form-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #fafcff;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

/* Fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-70px); 
    }
    to {
        opacity: 1;
        transform: translateY(0px); 
    }
}

.form-box h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Input Fields */
.input-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.textbox {
    width: 100%;
    padding: 10px;
    border: 2px solid #dfdfdf;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fafcff;
    color: #333;
    padding-left: 40px;
    transition: border-color 0.3s ease-in-out;
}

.textbox:hover,
.textbox:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    outline: none;
}

.login_maintable_button {
    display: flex;
    justify-content: flex-end;  /* Moves the button to the right */
    width: 100%;
    max-width: 350px;
}

.button {
    padding: 12px 30px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-top: 10px;
}

.button:hover {
    background-color: var(--primary-hover);
}

.button:focus {
    outline: none;
    box-shadow: 0 0 8px var(--primary-shadow);
}

/* Footer Styling */
.footer-text {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

@media only screen and (max-width: 800px) {
    .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: all 0.5s ease-in-out; /* Smooth transition */
    }

    .largesection {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeIn 0.6s ease-in-out forwards; /* Smooth fade-in */
    }

    .largesection img {
        width: 70%;
        max-width: 350px;
        height: auto;
        transition: transform 0.3s ease-in-out; /* Smooth scaling */
    }

    .largesection img:hover {
        transform: scale(1.05); /* Subtle hover effect */
    }

    .smallsection {
        width: 100%;
        display: flex;
        justify-content: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeIn 0.8s ease-in-out forwards; /* Slight delay for smooth transition */
    }

    .form-box {
        width: 90%;
        max-width: 400px;
        transition: all 0.4s ease-in-out; /* Smooth resizing */
    }
}

/* Keyframe Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
