* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #004d9b;
    --dark-blue: #002855;
    --light-blue: #0066cc;
    --accent-blue: #3498db;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.page-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--primary-blue);
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 77, 155, 0.1);
}

.page-header .logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.page-header .logo img {
    height: 45px;
    margin-right: 14px;
}

.page-header .logo span {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--primary-blue);
}

/* Main Container */
.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 160px);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #004d9b 0%, #002855 100%);
    color: var(--text-light);
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    position: relative;
    min-width: 400px;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

.welcome-section>* {
    position: relative;
    z-index: 1;
}

.welcome-section h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-section p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 360px;
    line-height: 1.5;
    opacity: 0.95;
    font-weight: 300;
}

/* Form Styles */
.login-form {
    width: 100%;
    max-width: 360px;
}

.login-form .btn-password {
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    font-size: 1.05rem;
    border-radius: var(--bs-border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.login-form .btn-primary:active {
    transform: translateY(-1px);
}

.login-form .form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-form .form-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 2px 0;
}

.login-form .form-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-light);
    transition: width 0.3s ease;
}

.login-form .form-links a:hover {
    color: var(--text-light);
}

.login-form .form-links a:hover::after {
    width: 100%;
}

/* Features Section */
.features-section {
    background-color: var(--text-light);
    padding: 35px 35px;
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-dark);
    border-radius: 0 20px 20px 0;
    overflow: hidden;
}

/* Scrollbar Styles for Features Section */
.features-section::-webkit-scrollbar {
    width: 6px;
}

.features-section::-webkit-scrollbar-track {
    background: rgba(0, 77, 155, 0.05);
    border-radius: 10px;
}

.features-section::-webkit-scrollbar-thumb {
    background: rgba(0, 77, 155, 0.3);
    border-radius: 10px;
}

.features-section::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 77, 155, 0.5);
}


.features-section h2 {
    font-size: 1.7rem;
    margin-bottom: 25px;
    color: var(--primary-blue);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue), var(--accent-blue));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(240, 244, 248, 0.5), rgba(230, 238, 248, 0.5));
    transition: var(--transition);
    cursor: default;
    border: 1px solid rgba(0, 102, 204, 0.08);
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(240, 244, 248, 1), rgba(230, 238, 248, 1));
    /* transform: translateY(-6px); */
    /* box-shadow: 0 10px 24px rgba(0, 77, 155, 0.15); */
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--light-blue);
    margin-right: 12px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(52, 152, 219, 0.1));
    border-radius: 10px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(52, 152, 219, 0.2));
}

.feature-content h5 {
    font-size: 0.98rem;
    margin-bottom: 4px;
    color: var(--primary-blue);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.feature-content p {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Footer */
.page-footer {
    color: var(--primary-blue);
    padding: 12px 0;
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    margin: 0 12px;
    transition: var(--transition);
    position: relative;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--light-blue);
}

.social-icons {
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 77, 155, 0.08);
    transition: var(--transition);
    color: var(--primary-blue);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--light-blue);
    color: var(--text-light);
    transform: translateY(-2px) scale(1.05);
}

.social-icon i {
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    body {
        /* height: 100vh; */
        height: auto;
        /* overflow: hidden; */
    }

    .login-container {
        flex-direction: column;
        /*  height: 100vh; */
        /* max-width: 680px; */
        /* max-height: calc(100vh - 150px); */
        /* margin: 15px; */
    }

    .welcome-section {
        min-width: unset;
        padding: 25px 30px;
        border-radius: 20px 20px 0 0;
    }

    .welcome-section h1 {
        font-size: 1.8rem;
    }

    .welcome-section p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .features-section {
        padding: 25px 30px;
        border-radius: 0 0 20px 20px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .features-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 12px 20px;
        flex-direction: column;
        text-align: center;
    }

    .page-header .logo {
        margin-bottom: 8px;
    }
}

@media (max-width: 575.98px) {
    body {
        /* height: 100vh; */
        /* overflow: hidden; */
        height: auto;
    }

    .main-wrapper {
        padding: 20px 0;
    }

    .login-container {
        max-width: 95%;
        /* height: 100vh; */
        /* max-height: calc(100vh - 140px); */
        border-radius: 16px;
        /*  margin: 10px; */
        height: auto;
    }

    .welcome-section {
        border-radius: 16px 16px 0 0;
        padding: 20px;
        flex: auto;
    }

    .welcome-section h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .welcome-section p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .features-section {
        border-radius: 0 0 16px 16px;
        padding: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        flex: auto;
    }

    .features-section h2 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .features-grid {
        gap: 10px;
    }

    .feature-card {
        padding: 12px;
    }

    .feature-icon {
        width: 38px;
        min-width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .feature-content h5 {
        font-size: 0.9rem;
    }

    .feature-content p {
        font-size: 0.75rem;
    }

    .page-header {
        padding: 10px 20px;
    }

    .page-header .logo img {
        height: 38px;
    }

    .page-header .logo span {
        font-size: 1.1rem;
    }

    .page-footer {
        padding: 10px 0;
        font-size: 0.75rem;
    }

    .footer-links {
        margin-bottom: 6px;
    }

    .footer-links a {
        margin: 0 8px;
        font-size: 0.75rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .social-icon i {
        font-size: 0.85rem;
    }
}
.alert-primary {
    background-image: linear-gradient(to bottom, rgb(167 190 255 / 98%), #a8c1ff);
    color: #000000;
}

.alert-secondary {
    background-image: linear-gradient(to bottom, rgb(200 200 200 / 98%), #cccccc);
    color: #000000;
}

.alert-success {
    background-image: linear-gradient(to bottom, rgb(167 255 190 / 98%), #a8ffc1);
    color: #000000;
}

.alert-danger {
    background-image: linear-gradient(to bottom, rgb(249 163 172 / 98%), #ef828c);
    color: #000000;
}

.alert-warning {
    background-image: linear-gradient(to bottom, rgb(255 233 167 / 95%), #ffe7a8);
    color: #000000;
}

.alert-info {
    background-image: linear-gradient(to bottom, rgb(167 233 255 / 95%), #a8e7ff);
    color: #000000;
}

.alert-dark {
    background-image: linear-gradient(to bottom, rgb(110 110 110 / 98%), #777777);
    color: #ffffff;
}

.alert-light {
    background-image: linear-gradient(to bottom, rgb(255 255 255 / 99%), #f0f0f0);
    color: #000000;
    border-color: #f0f0f0;
}