﻿:root {
    --primary-color: #1e3a8a;
    --accent-color: #3c82f6;
    --highlight-color: #f59e0b;
    --dark-color: #111827;
    --light-color: #f9fafb;
    --text-color: #4b5563;
    --success-color: #10b981;
    --error-color: #ef4444;
}

section {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.login-container {
    height: 100vh;
    max-width: 100%;
}

.brand-section {
    background: linear-gradient(135deg, var(--primary-color), #0f172a);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.animated-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.animated-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(3%, 3%) rotate(5deg);
    }

    66% {
        transform: translate(-3%, 5%) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    position: relative;
    font-weight: 700;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

    .brand-logo::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60px;
        height: 4px;
        background: var(--highlight-color);
        border-radius: 2px;
    }

.brand-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.brand-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 450px;
}

.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.login-form-section {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    transition: all 0.3s ease;
}

    .login-form-section:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    }

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.login-subtitle {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
}

.form-floating {
    margin-bottom: 1.5rem;
}

    .form-floating > .form-control,
    .form-floating > .form-select {
        height: calc(3.5rem + 2px);
        padding: 1rem 0.75rem;
    }

    .form-floating > label {
        padding: 1rem 0.75rem;
    }

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-size: 1rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
    }

    .form-control:disabled {
        background-color: #f8f9fa;
        color: #6b7280;
    }

#ddlBranch {
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.form-floating select.form-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2rem !important;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
}

.btn-primary {
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    height: 3.5rem;
}

    .btn-primary:hover {
        background: linear-gradient(to right, var(--primary-color), var(--accent-color));
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
    }

    .btn-primary:focus {
        box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.form-check {
    padding-left: 1.8rem;
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    margin-left: -1.8rem;
    background-color: white;
    border: 2px solid #e5e7eb;
}

    .form-check-input:checked {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@media (max-width: 991.98px) {
    .login-container {
        height: auto;
    }

    .brand-section {
        padding: 3rem 1.5rem;
        min-height: 40vh;
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        font-size: 2.5rem;
    }

    .login-form-section {
        padding: 2rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}
