/* ========== LOGIN.CSS - CENTERED TRANSPARENT FORM ========== */

* {
    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 BACKGROUND WITH IMAGE ========== */
.main-bg {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: url('../images/mainbck.png') center center / cover no-repeat fixed;
    position: relative;
}

/* Animated orbs - subtle glow effects */
.orb-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.2) 0%, rgba(155, 96, 35, 0) 70%);
    border-radius: 50%;
    top: -100px;
    right: -80px;
    animation: floatOrb 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.orb-2 {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(1, 69, 178, 0.2) 0%, rgba(4, 143, 247, 0) 70%);
    border-radius: 50%;
    bottom: -120px;
    left: -100px;
    animation: floatOrb 15s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.05); }
}

/* ========== CENTER FORM CARD - TRANSPARENT ========== */
.form-card {
    width: 420px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.468);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem 1.8rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 45px rgba(143, 98, 2, 0.432);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* ========== ROUNDED LINES BACKGROUND ========== */
.rounded-lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: 1.5rem;
}

/* Rounded circle patterns */
.rounded-lines-bg::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotateRound 25s linear infinite;
}

.rounded-lines-bg::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(1, 69, 178, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotateRoundReverse 20s linear infinite;
}

/* Additional rounded rings */
.rounded-lines-bg {
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 163, 115, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(4, 143, 247, 0.1) 0%, transparent 50%),
        repeating-radial-gradient(circle at 50% 50%, rgba(1, 69, 178, 0.05) 0px, rgba(1, 69, 178, 0.05) 2px, transparent 2px, transparent 20px);
}

@keyframes rotateRound {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes rotateRoundReverse {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(-180deg) scale(1.05);
    }
    100% {
        transform: rotate(-360deg) scale(1);
    }
}

/* ========== LOGO SECTION - SMALLER LOGO, BIGGER HEADINGS ========== */
.logo-section {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.form-logo-wrapper {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6rem;
}

.form-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    object-fit: contain;
}

.form-logo:hover {
    transform: scale(1.02);
}

/* Golden Gradient Heading - BIGGER */
.company-name {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(105deg, #9b6023, #d4a373, #f5c542);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

/* Larger Blue "Sign in" text - BIGGER */
.signin-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0145b2;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

/* ========== FORM STYLES ========== */
.login-form {
    margin-top: 0;
    position: relative;
    z-index: 2;
}

/* Input Groups */
.input-group-custom {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 0.7rem;
    border: 1.5px solid rgba(232, 226, 218, 0.8);
    transition: all 0.2s ease;
    height: 48px;
}

.input-group-custom.focused {
    border-color: #d4a373;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
    background: white;
}

.input-icon {
    padding: 0 0.5rem 0 1rem;
    color: #9b8b7a;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.input-group-custom.focused .input-icon {
    color: #9b6023;
}

.input-group-custom input {
    width: 100%;
    padding: 0 0.5rem 0 0;
    font-size: 0.9rem;
    border: none;
    background: transparent;
    outline: none;
    font-weight: 500;
    color: #2c3e4e;
    height: 100%;
}

.input-group-custom input::placeholder {
    color: #b8aa9a;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    color: #b8aa9a;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: transparent;
    z-index: 2;
}

.toggle-password:hover {
    color: #9b6023;
    transform: scale(1.1);
}

/* CAPTCHA */
.captcha-wrapper {
    margin-bottom: 1rem;
}

.captcha-inline-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.captcha-display {
    flex-shrink: 0;
    background: linear-gradient(135deg, #fef5e8, #fff3e6);
    border-radius: 0.7rem;
    padding: 0;
    text-align: center;
    border: 1px solid #e8d9cc;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    min-width: 100px;
    height: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.captcha-display:hover {
    border-color: #d4a373;
    box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.2);
}

.captcha-display span {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    background: linear-gradient(145deg, #5a3e1f, #9b6023);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Noise effect */
.captcha-display::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 5px);
    pointer-events: none;
}

.refresh-captcha {
    background: #fef5e8;
    border: 1px solid #e8d9cc;
    border-radius: 0.7rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    color: #9b6023;
    font-size: 1rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.refresh-captcha:hover {
    background: #f5e5d0;
    transform: rotate(20deg) scale(1.05);
    border-color: #d4a373;
    color: #7a4c1c;
}

.captcha-inline-input {
    flex: 1;
    padding: 0 0.6rem;
    border-radius: 0.7rem;
    border: 1.5px solid #e8e2da;
    background: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    min-width: 80px;
    height: 48px;
}

.captcha-inline-input:focus {
    border-color: #d4a373;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
    background: white;
}

.captcha-inline-input:hover {
    border-color: #d4a373;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.8rem 0 1.2rem 0;
    font-size: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #5a6e7c;
    font-weight: 500;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #9b6023;
}

.checkbox-label input {
    width: 15px;
    height: 15px;
    accent-color: #9b6023;
    cursor: pointer;
}

.forgot-link {
    color: #9b6023;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.forgot-link:hover {
    color: #c97e2a;
    text-decoration: underline;
}

/* GOLDEN GRADIENT BUTTON */
.login-btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 0.7rem;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.3px;
}

.golden-gradient {
    background: linear-gradient(105deg, #9b6023, #d4a373, #f5c542);
    color: white;
    box-shadow: 0 4px 10px rgba(155, 96, 35, 0.3);
    position: relative;
    overflow: hidden;
}

.golden-gradient::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.5s ease;
}

.golden-gradient:hover::before {
    left: 100%;
}

.golden-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(155, 96, 35, 0.4);
    background: linear-gradient(105deg, #b87a2e, #e8b87a, #ffd966);
}

.golden-gradient:active {
    transform: translateY(1px);
}

.golden-gradient i {
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.golden-gradient:hover i {
    transform: translateX(4px);
}

/* ========== FOOTER - CENTER ALIGNED ========== */
.bank-footer-mini {
    background: linear-gradient(95deg, #011f47, #0145b2);
    padding: 0.6rem 1rem;
    border-top: 1px solid rgba(212, 163, 115, 0.3);
    position: relative;
    z-index: 5;
    margin-top: auto;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    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.65rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.cidcos-brand-foot {
    font-weight: 800;
    background: linear-gradient(120deg, #ffffff, #d4a373);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.geosys-link {
    color: #d4a373;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.65rem;
    transition: all 0.2s;
}

.geosys-link:hover {
    opacity: 0.85;
    text-decoration: underline;
    color: #f5c542;
}

/* ========== RESPONSIVE - MOBILE VIEW ========== */
@media (max-width: 768px) {
    .main-bg {
        background-attachment: scroll;
        padding: 0.8rem;
    }
    
    .form-card {
        width: 380px;
        padding: 1.5rem 1.2rem;
    }
    
    .form-logo {
        max-width: 200px;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .signin-text {
        font-size: 0.95rem;
    }
    
    .logo-section {
        margin-bottom: 1.2rem;
    }
    
    .input-group-custom {
        height: 44px;
        margin-bottom: 0.9rem;
    }
    
    .captcha-display {
        height: 44px;
        min-width: 90px;
    }
    
    .refresh-captcha {
        width: 44px;
        height: 44px;
    }
    
    .captcha-inline-input {
        height: 44px;
    }
    
    .form-options {
        margin: 0.7rem 0 1rem 0;
    }
    
    .login-btn {
        padding: 0.65rem;
    }
}

@media (max-width: 480px) {
    .main-bg {
        padding: 0.5rem;
    }
    
    .form-card {
        width: 100%;
        padding: 1.2rem 1rem;
    }
    
    .form-logo {
        max-width: 160px;
    }
    
    .company-name {
        font-size: 1.2rem;
    }
    
    .signin-text {
        font-size: 0.9rem;
    }
    
    .logo-section {
        margin-bottom: 1rem;
    }
    
    .input-group-custom {
        height: 42px;
        margin-bottom: 0.8rem;
    }
    
    .input-group-custom input {
        font-size: 0.85rem;
    }
    
    .input-group-custom input::placeholder {
        font-size: 0.8rem;
    }
    
    .input-icon {
        font-size: 0.85rem;
    }
    
    .toggle-password {
        font-size: 0.85rem;
    }
    
    .captcha-display {
        height: 42px;
        min-width: 80px;
    }
    
    .captcha-display span {
        font-size: 1rem;
    }
    
    .refresh-captcha {
        width: 42px;
        height: 42px;
    }
    
    .captcha-inline-input {
        height: 42px;
        font-size: 0.85rem;
    }
    
    .form-options {
        margin: 0.6rem 0 0.9rem 0;
        font-size: 0.75rem;
    }
    
    .login-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .login-btn i {
        font-size: 0.8rem;
    }
    
    .footer-center {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .footer-center .mini-text {
        font-size: 0.6rem;
    }
    
    .geosys-link {
        font-size: 0.6rem;
    }
}

/* Hover effects for all interactive elements */
.input-group-custom:hover {
    border-color: #d4a373;
    background: white;
}

.checkbox-label:hover span {
    color: #9b6023;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Ensure body takes full height and footer stays at bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}