:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #ec4899;
    --secondary-hover: #db2777;
    --bg-overlay: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0px 10px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body.login-page {
    min-height: 800px;
    background-image: url('../images/loginBg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 20px;
}


.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding: 20px 0px;
    position: relative;
    /* For centering the title */
}

.logo img {
    height: 48px;
    object-fit: contain;
}

.safe-secure {
    font-size: 32px;
    font-weight: 600;
    color: #334155;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    /* Allow clicks through to logo if they overlap */
}

.logo {
    position: relative;
    z-index: 10;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 40px 60px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.login-card h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #1e3a8a;
    font-weight: 600;
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.input-group input:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    box-shadow: 0px 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.card-footer a {
    text-decoration: none;
    color: #1e3a8a;
    font-size: 15px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.card-footer a:hover {
    border-color: #1e3a8a;
}

/* Banner Card - Standardized Width */
.banner-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.05);
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.banner-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-content h3 {
    font-size: 38px;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 800;
}

.banner-content p {
    color: #334155;
    font-size: 18px;
    margin-bottom: 24px;
}

.btn-started {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: #ffffff;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-started:hover {
    transform: scale(1.05);
}

.banner-img {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0.8;
}

.banner-img img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Quick Actions Grid */
.quick-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 1000px;
}

.action-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.action-card:hover {
    transform: translateY(-4px);
}

.action-icon {
    width: 60px;
    /* Larger container */
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    /* Larger icons */
}

.action-card span {
    font-size: 18px;
    /* Larger size */
    font-weight: 600;
    /* Bolder */
    line-height: 1.2;
    color: #1e3a8a;
    /* Dark Navy Color from image */
}

/* Icon Colors */
.icon-loan {
    background: #fee2e2;
    color: #ef4444;
}

.icon-feedback {
    background: #dcfce7;
    color: #22c55e;
}

.icon-issue {
    background: #fef9c3;
    color: #eab308;
}

.icon-more {
    background: #dbeafe;
    color: #3b82f6;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .banner-card {
        flex-direction: column;
    }

    .banner-img {
        order: -1;
        width: 100%;
    }

    .quick-actions {
        flex-wrap: wrap;
    }

    .action-card {
        flex-basis: calc(50% - 8px);
    }

    .safe-secure {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .safe-secure {
        position: static;
        transform: none;
        font-size: 24px;
        width: 100%;
    }

    .quick-actions {
        flex-wrap: wrap;
    }

    .action-card {
        flex-basis: 100%;
    }
}
