﻿:root {
    --main-color: #2820a0;
    --secondary-color: #00954D; /* Green */
    --secondary-accent-color: #DEFFEF;
    --accent-color: #EBEBFF; /* Red */
    --background-color: #F3F3FF; /* Light Gray */
    --accent-background-color: #FDFDFF; /* Light Gray */
    --text-color: #2c3e50; /* Dark Gray */
    --text-grayishcolor: #2E2E31;
}

* {
    box-sizing: border-box;
}

html {
    padding: 0;
    margin: 0;
    height: 100%;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: rgba(255, 255, 255, 0.12);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: transparent;
    font-size: 15px;
    position: relative;
    min-height: 100vh;
}

.slideshow {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -3;
    overflow: hidden;
}

    .slideshow::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.15);
    }


.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 50s infinite;
}

    .slide:nth-child(1) {
        background-image: url('/Content/images/background1.jpg');
        animation-delay: 0s;
    }

    .slide:nth-child(2) {
        background-image: url('/Content/images/background2.jpg');
        animation-delay: 10s;
    }

    .slide:nth-child(3) {
        background-image: url('/Content/images/background3.jpg');
        animation-delay: 20s;
    }

    .slide:nth-child(4) {
        background-image: url('/Content/images/background4.jpg');
        animation-delay: 30s;
    }

    .slide:nth-child(5) {
        background-image: url('/Content/images/background5.jpg');
        animation-delay: 40s;
    }

@keyframes slideShow {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 0.2;
    }

    25% {
        opacity: 0.3;
    }

    33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

.password-toggle {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 1rem;
}

    .toggle-password:hover {
        color: var(--main-color);
    }

/*Navbar Styling*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 50px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.navlogo {
    width: 220px;
    padding: 0 0px;
}

.navright a, .loginbutton {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 3px;
    border: none;
}

    .navright a:hover, .loginbutton:hover {
        background-color: var(--main-color);
    }
/*Main Area Styling*/
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}


.centercontet {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    padding: 50px 0;
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    width: 60%;
    background-color: #fff;
}

.loginarea {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}



.top-side {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.loginbox-header h1 {
    margin: 15px auto 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
}


.topsidemage {
    width: 200px;
    padding: 0;
}


.loginbox {
    width: 450px;
    padding: 32px 28px;
    border-radius: 18px;
    /* More transparency */
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* Soft depth */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255,255,255,0.35);
}



.icon-input {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 14px;
    color: #888;
    font-size: 0.95rem;
    pointer-events: none;
}

.icon-input .form-input {
    padding-left: 42px;
}



/*Form Styling*/
.loginform {
    margin: 20px 0;
}

.inputerror {
    color: red;
    display: none;
    font-size: 0.9rem;
}
/*Footer Styling*/
footer {
    color: var(--main-color);
    text-align: center;
    padding: 2px 0;
    opacity: 1;
}

.formareabox {
    overflow-y: auto;
    max-height: 35vh;
}

.centercontet {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.form-links {
    text-align: center;
    margin-top: 12px;
}

.inline-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}


    .inline-links a {
        font-size: 0.9rem;
    }

.divider {
    color: #999;
}

.form-group {
    display: flex;
    flex-direction: column;
    color: var(--text-grayishcolor);
    margin: 10px 0;
}

    .form-group a,
    .form-group p {
        text-align: center;
        font-size: 0.9rem;
        margin-top: 2px;
    }


.form-input {
    height: 44px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    padding: 0 15px;
    font-size: 0.95rem;
    background-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.04);
}



    .form-input:focus {
        outline: none;
        border-color: var(--secondary-color);
    }

.icon-input:focus-within .input-icon {
    color: var(--secondary-color);
}


.captcharea {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}


    .captcharea img {
        height: 44px;
        width: 60%;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
    }



    .captcharea button {
        height: 42px;
        padding: 0 16px;
        border-radius: 6px;
        background-color: var(--secondary-color);
        color: #fff;
        border: none;
        font-weight: 500;
    }



        .captcharea button:hover {
            background-color: #71C64F;
        }

.loginbutton {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 18px;
    background-color: var(--secondary-color);
}



footer p {
    font-size: 0.9rem;
    margin: 5px;
    padding: 0;
}

.alert {
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    margin: 10px auto;
}

.alert-success {
    background-color: #d0ffd7;
    color: #093500;
    border: 1px solid #093500;
}

.alert-error {
    background-color: #fec4c4;
    color: #790101;
    border: 1px solid #790101;
}


@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        border-bottom: 1px solid #ccc;
    }

    .navlogo {
        width: 200px;
    }

    .navright {
        font-size: 0.8rem;
    }

    .centercontet {
        width: 90%;
        border-radius: 3px;
    }

    .topsidemage {
        width: 200px;
    }
}
/* Small screen adjustments for tiny mobile screens 320px - 480px */
@media (max-width: 400px) {
    html, body {
        font-size: 13px;
    }

    body {
        padding: 0 5px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 10px;
    }

    .navlogo {
        width: 120px;
        margin-bottom: 5px;
    }

    .navright a,
    .loginbutton {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .loginarea {
        padding: 10px;
    }

    .centercontet {
        width: 100%;
        padding: 15px 10px;
        border-radius: 5px;
        box-shadow: none;
    }

    .loginbox {
        width: 100%;
        padding: 15px 10px;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .topsidemage {
        width: 150px;
    }

    .loginbox-header h1 {
        font-size: 1.2rem;
        margin: 10px auto 15px;
    }

    .form-input {
        height: 38px;
        font-size: 0.85rem;
        padding: 0 12px;
    }

    .captcharea img {
        height: 38px;
        width: 55%;
    }

    .captcharea button,
    .loginbutton {
        height: 40px;
        font-size: 0.8rem;
    }

    .formareabox {
        max-height: 30vh;
    }

    footer p {
        font-size: 0.75rem;
    }
}
