body {
    background-color: #f5f7fa;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    flex-wrap: wrap;
}

/* Animations */
.animate-left, .animate-right {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.animate-left.visible, .animate-right.visible {
    opacity: 1;
    transform: translateY(0);
}

.login-form-section, .login-info-section {
    flex: 1 1 50%;
    max-width: 50%;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
}

.login-form-section {
    background: #ffffff;
    box-shadow: inset -1px 0 0 rgba(0,0,0,0.1);
}

.login-form-box {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form-box h2 {
    margin-bottom: 25px;
    font-weight: bold;
    color: #052374;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.form-group svg.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #052374;
}

.form-group .toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #052374;
    cursor: pointer;
}

.form-control {
    border-radius: 8px;
    height: 45px;
    box-shadow: none;
    border: 1px solid #ccc;
    padding-left: 45px;
    padding-right: 40px;
}

.form-control.invalid {
    border-color: red;
}

.form-control.valid {
    border-color: green;
}

.invalid-feedback {
    display: none;
    color: red;
    font-size: 13px;
    margin-top: 5px;
}

.form-control.invalid + .invalid-feedback {
    display: block;
}

.btn-primary, .btn-secondary {
    background-color: transparent;
    color: #052374;
    border: 2px solid #052374;
    border-radius: 8px;
    width: 100%;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: #052374;
    color: #ffffff;
}

.forgot-password {
    display: block;
    margin-top: 10px;
    text-align: right;
    font-size: 14px;
    color: #052374;
    text-decoration: underline;
}

.join-agent-button {
    margin-top: 20px;
}

.flash-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Spinner Inside Button */
.btn-spinner {
    position: relative;
}

.btn-spinner.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #052374;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* Info Section */

.login-info-section {
    background: url('../css/images/pattern.jpg') center center / cover no-repeat;
    position: relative;
    color: #fff;
    flex-direction: column;
}

.login-info-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 35, 116, 0.45);
    z-index: 0;
}

.login-info-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.video-section {
    margin-bottom: 30px;
}

.video-section iframe {
    width: 100%;
    height: 250px;
    border-radius: 10px;
}

/* Info Boxes Grid */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-box {
    background: #ffffff;
    color: #052374;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.info-box svg {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    fill: #052374;
}

.info-box h5 {
    margin-bottom: 10px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 991px) {
    .login-form-section, .login-info-section {
        max-width: 100%;
        flex: 1 1 100%;
        padding: 40px 20px;
    }

    .login-container {
        height: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .video-section iframe {
        height: 200px;
    }
}

.social-media-section {
    margin-top: 25px;
    text-align: center;
}

.social-media-section p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icons a {
    background: #ffffff;
    border: 2px solid #052374;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a svg {
    width: 18px;
    height: 18px;
    fill: #052374;
    transition: transform 0.3s, fill 0.3s;
}

.social-icons a:hover {
    background: #052374;
    border-color: #031b53;
}

.social-icons a:hover svg {
    fill: #ffffff;
    transform: scale(1.2);
}

.heading-container {
    position: relative;
    padding: 30px 20px 10px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    color: #000000;
    overflow: hidden;
    animation: fadeInContainer 0.8s ease-out both;
}

.heading-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 20%, transparent 70%);
    animation: rotateBackground 8s linear infinite;
    opacity: 0.5;
}

/* Background subtle rotation animation */
@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Fade in effect */
@keyframes fadeInContainer {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main heading style */
.login-heading {
    font-size: 30px;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.login-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: #000000;
    border-radius: 2px;
    animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 50%;
    }
}

/* Icon inside heading */
.login-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 10px;
    fill: #000000 !important;
}