﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

::-webkit-input-placeholder {
    text-transform: none;
}

:-moz-placeholder {
    text-transform: none;
}

::-moz-placeholder {
    text-transform: none;
}

:-ms-input-placeholder {
    text-transform: none;
}

::placeholder {
    text-transform: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}


.color-scheme {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

    .color-scheme .top-right {
        position: absolute;
        top: 0;
        right: 0;
        width: 500px;
        height: 250px;
        background: #a4b0ff;
        clip-path: polygon(0 0, 100% 0, 100% 100%);
    }

    .color-scheme .bottom-left {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 500px;
        height: 250px;
        background: #88d1ac;
        clip-path: polygon(0 0, 0 100%, 100% 100%);
    }

.container {
    display: flex;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.left-section {
    background: #f3f4f6;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.logo img {
    width: 150px;
}

.image img {
    width: 250px;
    margin: 20px 0;
}

.tagline {
    margin: 20px 0;
}

    .tagline p {
        font-size: 20px;
        color: #555;
        text-align: center;
        font-weight: 500;
    }

footer {
    text-align: left;
    width: 100%;
    padding: 20px 0 0 40px;
}

    footer p {
        font-size: 14px;
        color: #888;
    }

.footer-links {
    margin-top: 10px;
}

    .footer-links a {
        text-decoration: none;
        color: #555;
        margin: 0 10px;
        font-size: 14px;
    }

.right-section {
    padding: 40px;
    max-width: 400px;
    flex: 1;
    position: relative;
    z-index: 1;
}

    .right-section h1 {
        font-size: 28px;
        margin-bottom: 10px;
        font-weight: 700;
    }

        .right-section h1 span {
            color: #28a745;
        }

    .right-section p {
        margin-bottom: 30px;
        color: #888;
        font-size: 16px;
    }

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        font-size: 14px;
    }

    .input-group input,
    .input-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

    .forgot-password a {
        text-decoration: none;
        color: #007bff;
        font-size: 14px;
    }

#loginButton {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

#icareButton {
    width: 100%;
    padding: 12px;
    border: none;
    background: #28A745;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
    margin-top: 10px
}

button:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
}

.sign-in {
    margin-top: 20px;
    text-align: center;
}

    .sign-in a {
        text-decoration: none;
        color: #007bff;
        font-size: 14px;
    }

#errorMessage {
    margin-top: 20px;
    color: red;
    font-size: 14px;
    text-align: center;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

    .password-wrapper input[type="password"],
    .password-wrapper input[type="text"] {
        width: 100%;
        padding-right: 40px; /* Space for the icon */
        box-sizing: border-box;
    }

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #2e3192;
    font-size: 1em;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: #1c1f7f;
    }
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's above other content */
}

.loading-spinner {
    position: relative;
    width: 50px;
    height: 50px;
}

    .loading-spinner::before,
    .loading-spinner::after {
        content: '';
        position: absolute;
        border: 6px solid transparent;
        border-radius: 50%;
        opacity: 0;
        animation: pulse 1.5s infinite ease-in-out;
    }

    .loading-spinner::before {
        top: 0;
        left: 0;
        width: 50px;
        height: 50px;
        border-top-color: #106F50;
        border-left-color: #106F50;
        animation-delay: 0s;
    }

    .loading-spinner::after {
        top: -10px;
        left: -10px;
        width: 70px;
        height: 70px;
        border-bottom-color: #2e3192;
        border-right-color: #2e3192;
        animation-delay: 0.75s;
    }

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}
