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

/* Define root variables */
:root 
{
    /* Orange */
   /* --main-color: #f1af44; */
   /* --main-hover-color: #d48f34; */
      
    /* Apple Green */
     --main-color: #8DB600;  
     --main-hover-color: #7A9A01;
    
    --main-focus-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;
}

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;
}

form {
    width: 450px;
    max-width: 90%;
    transform: translateY(-50px);
    background-color: #fafcff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Logo */
img {
    height: 250px;
    display: block;
    margin: 0 auto;
}

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

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

.input-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin-bottom: 10px;
}

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

.input-container .textbox {
    padding-left: 40px;
}

.login_maintable_button {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 280px;
}

/* Button */
.button {
    padding: 12px 30px;
    background-color: var(--main-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 & Focus Effects */
.button:hover {
    background-color: var(--main-hover-color);
}

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

/* Footer styling */
.footer {
    position: fixed;
    bottom: 10px;
    text-align: center;
    font-size: 14px;
    color: #555;
    width: 100%;
}

.footer hr {
    width: 70%;
    border: 1px solid #ccc;
    margin: 10px auto;
}

.footer h5 {
    margin: 5px 0;
}

/* Responsive Design */
@media only screen and (max-width: 600px) {
    form {
        width: 350px;
        transition: all 0.3s ease-in-out;
    }
}

.error_summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #555;
}
