* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

.main-bg {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #0A1628;
}

/* Full Background Image */
.bg-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/MainBck.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1.5rem 2rem;
    z-index: 100;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem;
    border-radius: 0.8rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: 0.6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    cursor: pointer;
    background: transparent;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #FFFFFF;
    background: #D32F2F;
    box-shadow: 0 2px 20px rgba(211, 47, 47, 0.4);
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.nav-link.active:hover {
    background: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(211, 47, 47, 0.6);
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    height: 100vh;
    padding: 2rem;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Home Section */
.home-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.home-content {
    text-align: center;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 3rem 4rem;
    border-radius: 1.5rem;
    max-width: 90%;
}

/* Blur background for heading section */
.heading-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/MainBck.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px);
    transform: scale(1.1);
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: -1;
}

.heading-blur-bg.active {
    opacity: 0.85;
}

/* EDGEO Brand with Black and Red - Improved Readability */
.main-brand {
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: 8px;
    margin-bottom: 0.2rem;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.ed {
    color: #1A1A1A;
    text-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

.geo {
    color: #D32F2F;
    text-shadow: 0 0 60px rgba(211, 47, 47, 0.3);
}

.brand-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1A1A1A;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    transition: opacity 0.6s ease-out;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.brand-subtitle span {
    display: inline-block;
    margin-top: 0.3rem;
    font-weight: 400;
}

.brand-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #D32F2F, #F44336);
    border-radius: 3px;
    margin: 0.5rem auto;
    position: relative;
    z-index: 1;
}

.brand-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A1A;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-top: 0.5rem;
    transition: opacity 0.6s ease-out;
    position: relative;
    z-index: 1;
}

/* Login Section */
.login-section {
    display: none;
    opacity: 0;
    transform: translateX(-50px);
    z-index: 3;
}

.form-container {
    width: 100%;
    max-width: 420px;
    padding: 0 1rem;
}

/* Form Card with Red Border */
.form-card {
    width: 100%;
    padding: 2.5rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid #D32F2F;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card:hover {
    box-shadow: 0 30px 70px rgba(211, 47, 47, 0.15);
    transform: translateY(-2px);
}

.form-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.signin-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 0.2rem;
}

.form-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* Input Fields with Red Focus Shadow */
.input-group-custom {
    position: relative;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    background: #FFF5F5;
    border-radius: 0.7rem;
    border: 1.5px solid #FFCDD2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 48px;
}

.input-group-custom:hover {
    border-color: #EF9A9A;
    background: #FFEBEE;
    transform: translateY(-1px);
}

.input-group-custom.focused,
.input-group-custom:focus-within {
    border-color: #D32F2F;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15), 0 0 20px rgba(211, 47, 47, 0.1);
    background: #FFFFFF;
    transform: translateY(-1px);
}

.input-icon {
    padding: 0 0.5rem 0 1rem;
    color: #EF9A9A;
    font-size: 0.9rem;
    transition: color 0.4s ease;
}

.input-group-custom:focus-within .input-icon {
    color: #D32F2F;
}

.input-group-custom input {
    width: 100%;
    padding: 0 0.7rem 0 0;
    font-size: 0.9rem;
    border: none;
    background: transparent;
    outline: none;
    font-weight: 500;
    color: #1A1A1A;
    height: 100%;
}

.input-group-custom input::placeholder {
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    color: #EF9A9A;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #D32F2F;
    transform: scale(1.15);
}

/* CAPTCHA with Red */
.captcha-wrapper {
    margin-bottom: 0.8rem;
}

.captcha-label {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.captcha-inline-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.captcha-display {
    flex-shrink: 0;
    background: #FFF5F5;
    border-radius: 0.7rem;
    border: 1.5px solid #FFCDD2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 90px;
    height: 48px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.captcha-display:hover {
    border-color: #D32F2F;
    background: #FFFFFF;
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(211, 47, 47, 0.12);
}

.captcha-display span {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #D32F2F;
}

.refresh-captcha {
    flex-shrink: 0;
    background: #FFF5F5;
    border: 1.5px solid #FFCDD2;
    border-radius: 0.7rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    color: #D32F2F;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.refresh-captcha:hover {
    background: #FFEBEE;
    transform: rotate(15deg) scale(1.08);
    border-color: #D32F2F;
    box-shadow: 0 0 25px rgba(211, 47, 47, 0.15);
}

.captcha-inline-input {
    flex: 1;
    min-width: 0;
    padding: 0 0.5rem;
    border-radius: 0.7rem;
    border: 1.5px solid #FFCDD2;
    background: #FFF5F5;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 3px;
    height: 48px;
    color: #1A1A1A;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.captcha-inline-input:hover {
    border-color: #EF9A9A;
    background: #FFEBEE;
}

.captcha-inline-input:focus {
    border-color: #D32F2F;
    outline: none;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12), 0 0 20px rgba(211, 47, 47, 0.08);
}

.captcha-inline-input::placeholder {
    color: #999;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Form Options with Red */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 1.2rem 0;
    font-size: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: #1A1A1A;
    font-weight: 500;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    color: #D32F2F;
}

.checkbox-label input {
    width: 15px;
    height: 15px;
    accent-color: #D32F2F;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label input:hover {
    transform: scale(1.15);
}

.forgot-link {
    color: #D32F2F;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D32F2F;
    transition: width 0.3s ease;
}

.forgot-link:hover::after {
    width: 100%;
}

.forgot-link:hover {
    color: #B71C1C;
}

/* Login Button with Shine Effect */
.login-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.7rem;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(105deg, #B71C1C, #D32F2F, #F44336);
    color: white;
    background-size: 200% 200%;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 40px rgba(211, 47, 47, 0.5);
    background: linear-gradient(105deg, #D32F2F, #F44336, #D32F2F);
}

.login-btn:hover::before {
    opacity: 1;
    transform: rotate(45deg) translateX(100%);
}

.login-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

/* Footer - Updated with RNLEPL */
.bank-footer-mini {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem 0.5rem;
}

.mini-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3px;
}

.rnlepl-brand-foot {
    font-weight: 800;
    background: linear-gradient(120deg, #D32F2F, #F44336);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.75rem;
}

.geosys-link {
    color: #64B5F6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    position: relative;
}

.geosys-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64B5F6;
    transition: width 0.3s ease;
}

.geosys-link:hover::after {
    width: 100%;
}

.geosys-link:hover {
    color: #90CAF9;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
        padding: 0.3rem;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .home-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .main-brand {
        font-size: 4.5rem;
        letter-spacing: 4px;
    }

    .brand-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
        font-weight: 700;
    }

    .brand-tagline {
        font-size: 0.9rem;
        font-weight: 700;
    }

    .form-card {
        padding: 1.8rem;
    }

    .signin-title {
        font-size: 1.8rem;
    }

    .input-group-custom {
        height: 44px;
    }

    .captcha-display {
        width: 80px;
        height: 44px;
    }

    .refresh-captcha {
        width: 44px;
        height: 44px;
    }

    .captcha-inline-input {
        height: 44px;
    }

    /* Mobile adjustments */
    .heading-blur-bg {
        display: block;
    }

    .home-section {
        width: 100% !important;
    }

    .login-section {
        width: 100% !important;
        padding: 1rem;
    }

    .form-container {
        max-width: 100%;
        padding: 0;
    }

    .form-card {
        margin: 0 0.5rem;
    }

    .brand-subtitle span {
        font-size: 0.65rem !important;
    }

    .mini-text {
        font-size: 0.6rem;
    }

    .rnlepl-brand-foot {
        font-size: 0.65rem;
    }

    .geosys-link {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 0.8rem;
    }

    .nav-links {
        gap: 0.3rem;
        padding: 0.2rem;
    }

    .nav-link {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    .home-content {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .main-brand {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    .brand-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
        font-weight: 700;
    }

    .brand-tagline {
        font-size: 0.8rem;
        font-weight: 700;
    }

    .brand-divider {
        width: 60px;
    }

    .form-card {
        padding: 1.2rem;
        margin: 0 0.3rem;
    }

    .signin-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.75rem;
    }

    .input-group-custom {
        height: 42px;
    }

    .input-group-custom input {
        font-size: 0.8rem;
    }

    .captcha-display {
        width: 65px;
        height: 42px;
    }

    .captcha-display span {
        font-size: 0.8rem;
    }

    .refresh-captcha {
        width: 42px;
        height: 42px;
        font-size: 0.8rem;
    }

    .captcha-inline-input {
        height: 42px;
        font-size: 0.75rem;
        letter-spacing: 2px;
        padding: 0 0.3rem;
    }

    .login-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .form-options {
        font-size: 0.65rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .mini-text {
        font-size: 0.55rem;
    }

    .rnlepl-brand-foot {
        font-size: 0.6rem;
    }

    .geosys-link {
        font-size: 0.55rem;
    }

    .brand-subtitle span {
        font-size: 0.55rem !important;
    }

    .footer-center {
        gap: 0.2rem 0.3rem;
    }
}