﻿/* ---------------------- */
/* Base Layout */
/* ---------------------- */
body {
    background: var(--gradient-orange-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---------------------- */
/* Float Animation */
/* ---------------------- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 4s ease-in-out infinite;
}

/* ---------------------- */
/* Container & Row Layout */
/* ---------------------- */
.login-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 1000px;
    max-height: 90vh;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.login-row {
    flex: 1;
    display: flex;
    height: 100%;
    min-height: 0;
}

    .login-row > .col-md-6 {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }

/* ---------------------- */
/* Left Panel (Image/Features) */
/* ---------------------- */
.login-image {
    padding: 2rem 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    overflow-y: auto;
}

    .login-image::-webkit-scrollbar {
        width: 6px;
    }

    .login-image::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

/* ---------------------- */
/* Right Panel (Login Form) */
/* ---------------------- */
.login-form {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 2rem 3rem;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-form::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--gradient-green);
    }

    /* Scrollbar style */
    .login-form::-webkit-scrollbar {
        width: 6px;
    }

    .login-form::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

.login-form {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* ---------------------- */
/* Login Header */
/* ---------------------- */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h1 {
        color: var(--dark-bg);
        font-size: 2.2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .login-header p {
        color: #6c757d;
        font-size: 1.1rem;
    }

/* ---------------------- */
/* Welcome Section */
/* ---------------------- */
.welcome-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.tmu-icon {
    width: 60px;
    height: 60px;
}

.welcome-text {
    position: relative;
}

    .welcome-text .text.long {
        font-size: 1.5rem;
        font-weight: 600;
        position: relative;
    }

        .welcome-text .text.long::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--gradient-green);
            border-radius: 2px;
        }

        .welcome-text .text.long .fw-light {
            font-weight: 300;
        }

    .welcome-text p {
        margin: 0.5rem 0 0 0;
    }

/* ---------------------- */
/* Feature Box */
/* ---------------------- */
.feature-box {
    margin: 1rem 0;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.feature-list {
    z-index: 1;
    padding: 1rem 1rem 1rem 0;
    min-height: 0;
}

.feature-box::-webkit-scrollbar {
    width: 6px;
}

.feature-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 1rem 0;
}

.feature-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

    .feature-box::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.4);
    }

.feature-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: none;
    opacity: 0;
    align-items: center;
    transition: opacity 2s ease-in-out;
}

    .feature-item.visible {
        display: flex;
        opacity: 1;
    }

    .feature-item i {
        color: white;
        font-size: 1.2rem;
        margin-right: 1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.2);
        padding: 0.75rem;
        border-radius: 0.75rem;
        flex-shrink: 0;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-item span {
        flex: 1;
        line-height: 1.4;
    }

/* ---------------------- */
/* Form Elements */
/* ---------------------- */
.validation-summary-errors {
    color: var(--secondary-orange);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

/*.form-check {
    margin-top: 1rem;
}*/

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* ---------------------- */
/* Button Styles */
/* ---------------------- */
.btn-green-lg {
    background: var(--gradient-green);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 500;
    width: 100%;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.2);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

    .btn-green-lg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transform: translateX(-100%);
        transition: 0.5s;
    }

    .btn-green-lg:hover::before {
        transform: translateX(100%);
    }

    .btn-green-lg:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(39, 174, 96, 0.3);
    }

/* ---------------------- */
/* Link */
/* ---------------------- */
.link-green {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .link-green:hover {
        color: var(--secondary-green);
        text-decoration: underline;
    }

/* ---------------------- */
/* Spinner */
/* ---------------------- */
.spinner-orange {
    border-top-color: var(--primary-orange);
    border-right-color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
    border-left-color: transparent;
}

/* ---------------------- */
/* Captcha */
/* ---------------------- */
.custom-captcha {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(6px);
}

    .custom-captcha .captcha-img {
        height: 40px;
        border-radius: 0.25rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

/* ---------------------- */
/* Responsive */
/* ---------------------- */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        max-height: none;
        height: auto;
    }

    .login-form {
        padding: 2rem;
    }

    .login-image {
        display: none;
    }
}
