﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column; /* Allows footer to sit below main container */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/images/ul_bg.png'); /* Replace with your actual image path */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.1; /* Adjust transparency */
        z-index: -1;
    }

/* --- Login Container --- */
.login-container {
    display: flex;
    flex-direction: row;
    width: 80%;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px; /* Space for fixed footer */
    background-color: transparent; /* Transparent background */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* --- Branding Panel (Left 65%) --- */
.branding-panel {
    flex: 0 0 65%;
    background-color: rgba(255, 140, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    color: #333;
}

.client-logo-container img {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.branding-panel h1 {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.branding-panel p {
    font-weight: 300;
    color: #555;
    font-size: 0.95em;
}

/* --- Login Panel (Right 35%) --- */
.login-panel {
    flex: 0 0 35%;
    background-color: rgba(255, 255, 255, 0.65);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-logo-container {
    margin-bottom: 10px;
}

    .project-logo-container img {
        width: 450px;
        height: 150px;
    }

.login-panel h2 {
    font-weight: 400;
    color: #000000;
    margin-bottom: 30px;
}

/* --- Form Styling --- */
.login-form {
    width: 100%;
    max-width: 300px;
}

.input-group {
    margin-bottom: 20px;
}

/* --- Input Fields & Buttons --- */
input[type=text], input[type=password] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s;
    margin: 8px 0;
}

    input[type=text]:focus, input[type=password]:focus {
        outline: none;
        border-color: #FF8C00;
    }

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #FF8C00;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.1s;
}

    .login-button:hover {
        background-color: #e67e00;
    }

    .login-button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        opacity: 1;
    }

/* --- Forgot Password Link --- */
.forgot-password {
    display: block;
    text-align: right;
    width: 100%;
    margin-top: 35px;
    color: #e67e00;
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.3s;
}

    .forgot-password:hover {
        color: #FF8C00;
    }

/* --- Error Message --- */
.error {
    color: #c00;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    color: #777;
    font-size: 0.8em;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #FFFFFF;
    border-top: 1px solid #eee;
    z-index: 10;
}

.powered-by {
    font-weight: 700;
    color: #000000;
}

/* --- Spinner Overlay --- */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.spinner {
    border: 4px solid #F0F0F0;
    border-top: 4px solid #FF8C00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* --- Text Styling --- */
.client-text {
    color: #e67e00;
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}
.tag-text {
    color: #ffffff;
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}
.body-container {
    background-color: #c4c4c4;
}
/* Centered Toast Container */
#toast-container {
    position: fixed;
    top: 40%;
    left: 75%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Toast Message Style */
.toast-message {
    background-color: #e74c3c; /* 🔴 Red for error */
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: center;
    min-width: 250px;
    max-width: 80%;
}

    /* Toast visible state */
    .toast-message.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* --- Animation --- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Responsive Design --- */
/* --- Responsive Design --- */
@media (max-width: 1200px) {
    #toast-container {
        position: fixed;
        top: 50%;
        left: 50%;
    }
    .login-container {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        margin: 0;
        border: 1px;
        border-radius: 2px;
        box-shadow: none;
    }
}

@media (max-width: 992px) {
    #toast-container {
        position: fixed;
        top: 50%;
        left: 50%;
    }
    .login-container {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        margin: 0;
        border: 1px;
        border-radius: 2px;
        box-shadow: none;
    }
}
@media (max-width: 768px) {
    #toast-container {
        position: fixed;
        top: 40%;
        left: 50%;
    }
    .login-container {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        margin: 0;
        border: 1px;
        border-radius: 2px;
        box-shadow: none;
    }

    .branding-panel {
        display: none; /* Hide branding on mobile */
    }

    .login-panel {
        flex: none;
        width: 100%;
        height: 100vh; /* Make login panel fit the full screen height */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 30px 20px;
        background-color: rgba(255, 255, 255, 0.85); /* Slightly stronger for clarity */
    }

    .login-form {
        max-width: 100%;
    }

    .footer {
        position: static;
        margin-top: 0;
        border-top: none;
    }
}
