/* ========== LOGIN.CSS - RNLEPL REDUCED SIZE WITH BLACK FOCUS ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.main-bg {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE0E0 30%, #FFCCCC 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    animation: floatOrb 12s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #FF0000;
    top: -150px;
    right: -120px;
    opacity: 0.2;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: #CC0000;
    bottom: -120px;
    left: -100px;
    opacity: 0.15;
    animation-duration: 15s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #FF6666;
    top: 50%;
    left: 10%;
    opacity: 0.1;
    animation-duration: 18s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.05); }
}

.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: transparent;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* ========== LEFT SIDE ========== */
.brand-side {
    flex: 1;
    background: #FFFFFF;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

/* Scattered Images */
.scattered-img {
    position: absolute;
    z-index: 1;
}

.scattered-img img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scattered-img img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.img-1 {
    top: 15%;
    right: 10%;
}

.img-2 {
    bottom: 15%;
    left: 10%;
}

/* Round decorative elements - more red */
.round-deco {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.15), rgba(255, 0, 0, 0.08));
    pointer-events: none;
    z-index: 0;
}

.deco-1 {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -50px;
    border: 2px solid rgba(204, 0, 0, 0.2);
}

.deco-2 {
    width: 130px;
    height: 130px;
    bottom: 20%;
    left: -40px;
    border: 2px solid rgba(204, 0, 0, 0.15);
}

.deco-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: -20px;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.2), transparent);
}

.deco-4 {
    width: 60px;
    height: 60px;
    bottom: 10%;
    right: 15%;
    border: 1px solid rgba(204, 0, 0, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.brand-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.brand-logo-wrapper {
    margin-bottom: 0.8rem;
}

.brand-logo {
    width: 210px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #CC0000, #FF0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FF0000, #CC0000);
    margin: 0.6rem auto;
    border-radius: 2px;
}

.brand-tagline {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.brand-desc {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 1.2rem;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.8rem;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #555;
    background: #F8F8F8;
    padding: 0.4rem 0.6rem;
    border-radius: 1.5rem;
}

.feature-item i {
    width: 18px;
    color: #CC0000;
    font-size: 0.75rem;
}

/* ========== RIGHT SIDE ========== */
.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-width: 360px;
    background: #FFFFFF;
}

.form-card {
    width: 100%;
    max-width: 380px;
    border-radius: 1.2rem;
    padding: 1.5rem 1.5rem;
    position: relative;
    background: #FFFFFF;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(204, 0, 0, 0.1);
}

/* Circling border light effect */
.circling-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 1.2rem;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.white-card:focus-within .circling-border {
    animation: circleGlow 1.5s linear infinite;
    border: 2px solid transparent;
}

@keyframes circleGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.4), inset 0 0 0 0 rgba(204, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.3), inset 0 0 0 2px rgba(204, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0), inset 0 0 0 0 rgba(204, 0, 0, 0);
    }
}

.red-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #FF0000, #CC0000, #990000, #CC0000, #FF0000);
    background-size: 200% 100%;
    animation: barShine 3s linear infinite;
    border-radius: 1.2rem 1.2rem 0 0;
}

@keyframes barShine {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.red-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid #CC0000;
    border-left: 2px solid #CC0000;
    border-radius: 1.2rem 0 0 0;
}

.corner-tr {
    top: 0;
    right: 0;
    border-top: 2px solid #CC0000;
    border-right: 2px solid #CC0000;
    border-radius: 0 1.2rem 0 0;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid #CC0000;
    border-left: 2px solid #CC0000;
    border-radius: 0 0 0 1.2rem;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #CC0000;
    border-right: 2px solid #CC0000;
    border-radius: 0 0 1.2rem 0;
}

.form-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.welcome-text {
    font-size:2rem;
    font-weight: 800;
    color: #CC0000;
    margin-bottom: 0.2rem;
}

.form-subtitle {
    font-size: 0.75rem;
    color: #888;
}

/* Input Fields */
.input-group-custom {
    position: relative;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    background: #F8F8F8;
    border-radius: 0.7rem;
    border: 1.5px solid #E0E0E0;
    transition: all 0.3s ease;
    height: 46px;
}

.white-field.focused,
.input-group-custom:focus-within {
    border-color: #CC0000;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.15);
    background: #FFFFFF;
}

.input-icon {
    padding: 0 0.5rem 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

.input-group-custom:focus-within .input-icon {
    color: #CC0000;
}

.input-group-custom input {
    width: 100%;
    padding: 0 0.7rem 0 0;
    font-size: 0.85rem;
    border: none;
    background: transparent;
    outline: none;
    font-weight: 500;
    color: #333;
    height: 100%;
}

.input-group-custom input::placeholder {
    color: #AAA;
    font-size: 0.8rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    color: #AAA;
    font-size: 0.9rem;
}

.toggle-password:hover {
    color: #CC0000;
}

/* CAPTCHA */
.captcha-wrapper {
    margin-bottom: 0.8rem;
}

.captcha-label {
    font-size: 0.65rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.captcha-inline-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-display {
    flex-shrink: 0;
    background: #F8F8F8;
    border-radius: 0.7rem;
    border: 1.5px solid #E0E0E0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    min-width: 90px;
    height: 46px;
    cursor: pointer;
}

.captcha-display:hover {
    border-color: #CC0000;
}

.captcha-display span {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #CC0000;
}

.refresh-captcha {
    background: #F8F8F8;
    border: 1.5px solid #E0E0E0;
    border-radius: 0.7rem;
    width: 46px;
    height: 46px;
    cursor: pointer;
    color: #CC0000;
    transition: all 0.25s ease;
}

.refresh-captcha:hover {
    background: #FFF0F0;
    transform: rotate(15deg);
    border-color: #CC0000;
}

.captcha-inline-input {
    flex: 1;
    padding: 0 0.5rem;
    border-radius: 0.7rem;
    border: 1.5px solid #E0E0E0;
    background: #F8F8F8;
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 3px;
    height: 46px;
    color: #333;
}

.captcha-inline-input:focus {
    border-color: #CC0000;
    outline: none;
    background: #FFFFFF;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 1.2rem 0;
    font-size: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: #555;
}

.checkbox-label input {
    width: 14px;
    height: 14px;
    accent-color: #CC0000;
}

.forgot-link {
    color: #CC0000;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* BLACK FOCUS BUTTON - turns black with red circling border */
.login-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.7rem;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(105deg, #CC0000, #FF3333, #CC0000);
    color: white;
    position: relative;
    overflow: hidden;
}

.black-focus-btn {
    background: linear-gradient(105deg, #CC0000, #FF3333, #CC0000);
}

.black-focus-btn:focus {
    background: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.4), 0 0 0 6px rgba(204, 0, 0, 0.2);
    outline: none;
}

.black-focus-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

.black-focus-btn:active {
    transform: translateY(1px);
}

/* Create Account with IP */
.create-account-wrapper {
    margin-top: 1.2rem;
    text-align: center;
}

.ip-address-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #F8F8F8;
    padding: 0.4rem 0.8rem;
    border-radius: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.7rem;
    color: #555;
}

.ip-address-section i {
    color: #CC0000;
}

.ip-address-section strong {
    color: #CC0000;
}

.account-link-section {
    padding-top: 0.3rem;
}

.create-account-text {
    color: #888;
    font-size: 0.75rem;
    margin-right: 0.4rem;
}

.create-account-link {
    color: #CC0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
}

.create-account-link:hover {
    text-decoration: underline;
}

/* Footer */
.bank-footer-mini {
    background: #FFFFFF;
    padding: 0.5rem 1rem;
    border-top: 1px solid #FFCCCC;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

.footer-center .mini-text {
    font-size: 0.6rem;
    color: #888;
}

.rnlepl-brand-foot {
    font-weight: 800;
    background: linear-gradient(120deg, #CC0000, #FF4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.geosys-link {
    color: #CC0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.6rem;
}

/* ========== MOBILE VIEW - ONLY RIGHT SIDE ========== */
@media (max-width: 768px) {
    .login-container {
        max-width: 450px;
    }
    
    .brand-side {
        display: none;
    }
    
    .form-side {
        min-width: auto;
        width: 100%;
        padding: 1rem;
    }
    
    .form-card {
        max-width: 100%;
        padding: 1.2rem;
    }
    
    .welcome-text {
        font-size: 1.3rem;
    }
    
    .input-group-custom {
        height: 44px;
    }
    
    .captcha-display {
        height: 44px;
        min-width: 85px;
    }
    
    .refresh-captcha {
        width: 44px;
        height: 44px;
    }
    
    .captcha-inline-input {
        height: 44px;
    }
    
    .login-btn {
        padding: 0.7rem;
    }
}

@media (max-width: 480px) {
    .main-bg {
        padding: 0.5rem;
    }
    
    .form-side {
        padding: 0.5rem;
    }
    
    .form-card {
        padding: 1rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
    
    .form-subtitle {
        font-size: 0.7rem;
    }
    
    .input-group-custom {
        height: 42px;
        margin-bottom: 0.7rem;
    }
    
    .input-group-custom input {
        font-size: 0.8rem;
    }
    
    .captcha-display {
        height: 42px;
        min-width: 75px;
    }
    
    .captcha-display span {
        font-size: 0.9rem;
    }
    
    .refresh-captcha {
        width: 42px;
        height: 42px;
    }
    
    .captcha-inline-input {
        height: 42px;
        font-size: 0.8rem;
    }
    
    .login-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .ip-address-section {
        font-size: 0.65rem;
    }
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}