/* ============================================================
   BOT PRINT PORTAL - Login/Register Page Styles
   Nature-inspired theme (Child Nearby style)
   ============================================================ */

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #0a1628;
    overflow-x: hidden;
    position: relative;
}

/* ============ NATURE BACKGROUND ============ */
.login-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: 
        linear-gradient(135deg, #0a1628 0%, #1a2a4a 30%, #0d2137 60%, #0a1628 100%);
}

.login-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite linear;
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 25%; animation-delay: 3s; animation-duration: 18s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 40%; animation-delay: 6s; animation-duration: 22s; }
.particle:nth-child(4) { left: 55%; animation-delay: 2s; animation-duration: 16s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 70%; animation-delay: 4s; animation-duration: 19s; }
.particle:nth-child(6) { left: 85%; animation-delay: 1s; animation-duration: 21s; width: 3px; height: 3px; }
.particle:nth-child(7) { left: 15%; animation-delay: 7s; animation-duration: 17s; }
.particle:nth-child(8) { left: 60%; animation-delay: 5s; animation-duration: 23s; width: 6px; height: 6px; opacity: 0.2; }

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ============ TOP NAVBAR ============ */
.login-navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.login-navbar .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.login-navbar .logo-area img {
    width: 40px; height: 40px;
    border-radius: 10px;
}
.login-navbar .logo-area span {
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.login-navbar .nav-links {
    display: flex;
    gap: 6px;
}
.login-navbar .nav-links a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.login-navbar .nav-links a:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}
.login-navbar .nav-links a.active {
    background: #00d4ff;
    color: #0a1628;
}

.login-navbar .phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
.login-navbar .phone-btn:hover {
    background: #10b981;
    color: #fff;
}

/* ============ LOGIN CONTAINER ============ */
.login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 20px 40px;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: rgba(19, 34, 65, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.05);
    animation: containerAppear 0.6s ease forwards;
}

@keyframes containerAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left Panel - Welcome */
.login-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border-right: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
}
.login-left::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.06), transparent 50%);
    pointer-events: none;
}

.login-left h1 {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}
.login-left h1 span {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-left p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    position: relative;
}

.login-left .features-mini {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.login-left .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.08);
}
.login-left .feature-item i {
    color: #00d4ff;
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.login-left .feature-item span {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
}

/* Right Panel - Form */
.login-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right .form-title {
    text-align: center;
    margin-bottom: 30px;
}
.login-right .form-title h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.login-right .form-title p {
    color: #94a3b8;
    font-size: 13px;
}

.login-right .input-group {
    position: relative;
    margin-bottom: 18px;
}
.login-right .input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    transition: 0.2s;
}
.login-right .input-group input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1px solid rgba(30, 58, 95, 0.8);
    border-radius: 12px;
    background: rgba(15, 31, 61, 0.8);
    color: #e2e8f0;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.2s;
}
.login-right .input-group input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}
.login-right .input-group input:focus + i,
.login-right .input-group input:focus ~ i {
    color: #00d4ff;
}
.login-right .input-group input::placeholder { color: #64748b; }

.login-right .login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00d4ff, #0094b8);
    color: #0a1628;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
}
.login-right .login-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.login-right .form-links {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.login-right .form-links a {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}
.login-right .form-links a:hover { color: #00d4ff; }
.login-right .form-links a.register-link {
    color: #00d4ff;
    font-weight: 600;
}

/* ============ REGISTER PAGE EXTRAS ============ */
.login-container.register-mode {
    max-width: 1000px;
}
.register-form .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.login-right .input-group select {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1px solid rgba(30, 58, 95, 0.8);
    border-radius: 12px;
    background: rgba(15, 31, 61, 0.8);
    color: #e2e8f0;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.2s;
    appearance: none;
    cursor: pointer;
}
.login-right .input-group select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}
.login-right .input-group select option {
    background: #132241;
    color: #e2e8f0;
}

/* ============ BOTTOM AVATARS ============ */
.bottom-avatars {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.bottom-avatars .avatar-circle {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    overflow: hidden;
    animation: float-avatar 3s ease-in-out infinite;
    opacity: 0.7;
}
.bottom-avatars .avatar-circle:nth-child(even) { animation-delay: 0.5s; }
.bottom-avatars .avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

@keyframes float-avatar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============ FOOTER TAG ============ */
.login-footer {
    position: fixed;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    color: #64748b;
    font-size: 11px;
    z-index: 10;
    letter-spacing: 0.1em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .login-container { flex-direction: column; margin: 0 10px; }
    .login-left { padding: 30px 24px; border-right: none; border-bottom: 1px solid rgba(0, 212, 255, 0.1); }
    .login-right { padding: 30px 24px; }
    .login-left h1 { font-size: 28px; }
    .login-left .features-mini { display: none; }
    .login-navbar .nav-links { display: none; }
    .register-form .input-row { grid-template-columns: 1fr; }
    .bottom-avatars { display: none; }
}
